[Lazarus] Bug in double click to open de fields editor

silvioprog silvioprog at gmail.com
Wed Oct 6 22:26:49 CEST 2010


Tobias Giesen пишет:
> Hi,
> 
> I think you shouldn't create suspended threads anyway. The Windows
> API docs say that suspend/resume is only for debuggers. To synchronize
> threads or to delay the starting of a thread you should use events,
> WaitForMultipleObjects etc.
> 
Creating a suspended TThread is a different matter than suspending it later on.
TThread has code to handle the initial suspend case, so there should be no need in additional user 
code. Further, to differentiate between 'initial' and 'subsequent' suspends, Delphi has introduced a 
method named 'Start'. It was added to FPC recently, too.

Regards,
Sergei




More information about the Lazarus mailing list