Hi, how can I free this function:
Code: Pascal [Select][+][-]procedure TForm1.RunUpdaterAsync(Data: IntPtr);
Sometimes I love C's int* more than Pascal PtrInt
There is nothing to be freed here. Callback is static and passed as pointer.
Quote from: giahung1997 on April 20, 2019, 06:52:15 amSometimes I love C's int* more than Pascal PtrInt Yeah, wild card programming would be easy..... (Anyway, a bit more serious: release any objects in the thread it was created in the first place. That's the "law".)
Quote from: giahung1997 on April 20, 2019, 06:52:15 amSometimes I love C's int* more than Pascal PtrInt ptrint is the equal of C99 intptr_t, not of *int, iow an integer with the same size as pointer.