2006-11-19 19:16:59 UTC
"callback", like when using WaitForSingleObject or
While not Terminated do
AHandle := FindFirstChangeNotification(...)
In this example, if the notification doesn't happen, the thread will
wait INFINITE, therefore I can't free it properly from an external
code. Wait functions, because of their blocking nature, (mostly) make
sense if used in a thread, so there must be a "common practise"
approach to this.
And probably a lame question, but is it safe to use Self.Free at the
end of Execute method? I've currently solved the issue by using a
custom message which the thread sends at the end of it's Execute
method, but I'm guessing that there's a "common practise" approach to