[Lazarus] Thread finalization
Flávio Etrusco
flavio.etrusco at gmail.com
Wed Sep 21 18:28:40 CEST 2011
> On Wed, 21 Sep 2011 11:12:12 -0300
> Leonardo M. Ramé <l.rame at griensu.com> wrote:
>
>> On 2011-09-21 15:38:08 +0200, cobines wrote:
>>[...]
>> Well, the "best" way I found is to create a Timer that checks if the
>> thread is terminated, then destroy it.
>>
>> I don't like this. It would be better if the thread can communicate the
>> main form that it has finished, then the main form can destroy it,
>> without using a Timer.
>
Would the attached example work for you?
-Flávio
-------------- next part --------------
A non-text attachment was scrubbed...
Name: threadtest.zip
Type: application/zip
Size: 4395 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110921/c678f477/attachment-0003.zip>
More information about the Lazarus
mailing list