[Lazarus] Using 5dpo for serial comm...

Bo Berglund bo.berglund at gmail.com
Wed Oct 6 23:11:57 CEST 2010


On Wed, Oct 6, 2010 at 11:23 AM, Sergei Gorelkin
<sergei_gorelkin at mail.ru> wrote:
> 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.

Well, the problem was fixed.
Bug reporter: http://bugs.freepascal.org/view.php?id=16884
Solution: http://cia.vc/stats/project/fpc/.message/b8ef19


Marcos Douglas




More information about the Lazarus mailing list