Delphi thread return value using waitfor

When using waitfor would not have set Freeonterminated property, otherwise you will be prompted thread handle errors, mainly used inside ExitThread method, when the thread is finished method will automatically release the thread, but remember to override the Destroy method, and then call it , or a memory leak!

Guess you like

Origin www.cnblogs.com/Coder-MIFir/p/11165440.html