<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 06/08/2011 06:48 PM, Krzysztof wrote:
<blockquote
cite="mid:BANLkTins7LarA_KgEfv0Qb17FMLrOzL3gw@mail.gmail.com"
type="cite"><br>
<div>1. Thread add queue calling
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
Application.QueueAsyncCall(MyObj.EventMethod, 0);</div>
</blockquote>
Why does it not create a data storage and provides the pointer ? <br>
<blockquote
cite="mid:BANLkTins7LarA_KgEfv0Qb17FMLrOzL3gw@mail.gmail.com"
type="cite">
<div>2. MyObj is destroyed by main thread</div>
</blockquote>
How does the Main thread know about it ? <br>
<blockquote
cite="mid:BANLkTins7LarA_KgEfv0Qb17FMLrOzL3gw@mail.gmail.com"
type="cite">
<div>3. Main thread process messages and try call queue added by
thread but reference to MyObj.EventMethod was destroyed by
previous message loop. <br>
</div>
</blockquote>
can't happen if the pointer is transferred with the call request.<br>
<br>
-Michael<br>
<br>
</body>
</html>