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

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to