<div dir="ltr">I had the same problem with asynchronous operations but only when I do it in a GUI layer like winforms or WPF.<br>To get around that I used ThreadPool.QueueUserWorkItem<br clear="all"><br>
<br><br><div class="gmail_quote">On Thu, Sep 11, 2008 at 11:32 AM, Knic Knic <span dir="ltr">&lt;<a href="mailto:oneeyedelf1@gmail.com">oneeyedelf1@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr"><p>I am trying to get asynchronous delegates to work in 1.1.2 and 2.0 beta3, both fail for me, here is what I am trying to do<br></p><p></p><p>from IronPython.Runtime.Calls import CallTarget0<br><br>def printHi():<br>

&nbsp;print &#39;hi&#39;<br><br>delegate = CallTarget0(printHi)<br>async_result = delegate.BeginInvoke(None, None)<br>delegate.EndInvoke(async_result)<br></p><p>Here is what I get:&nbsp;</p><p>Traceback (most recent call last):<br>

&nbsp; File , line 0, in &lt;stdin&gt;##22<br>&nbsp; File , line 0, in EndInvoke##23<br>SystemError: Object reference not set to an instance of an object.<br><br></p></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.ironpython.com">Users@lists.ironpython.com</a><br>
<a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br>
<br></blockquote></div><br></div>