[Lazarus] How to PostMessage to object?

Michael Schnell mschnell at lumino.de
Thu Jun 9 10:53:00 CEST 2011


On 06/08/2011 06:48 PM, Krzysztof wrote:
>
> 1. Thread add queue calling 
> Application.QueueAsyncCall(MyObj.EventMethod, 0);
Why does it not create a data storage and provides the pointer ?
> 2. MyObj is destroyed by main thread
How does the Main thread know about it ?
> 3. Main thread process messages and try call queue added by thread but 
> reference to MyObj.EventMethod was destroyed by previous message loop.
can't happen if the pointer is transferred with the call request.

-Michael

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110609/f8fbdef0/attachment-0003.html>


More information about the Lazarus mailing list