J
Joe
In the callback I need to call an event letting the calling form know that
the operation completed. If the operation fails, the main form needs to show
another form. The problem I get is when the Callback returns it hangs the
app.
Here's the callback:
private void Callback(IAsyncResult ar)
{
System.Runtime.Remoting.Messaging.AsyncResult result =
(System.Runtime.Remoting.Messaging.AsyncResult)ar;
RequestHandler handler = result.AsyncDelegate as RequestHandler;
if (handler != null)
handler.EndInvoke(ar);
if (RequestComplete != null)
RequestComplete(this);
}
Any ideas?
-Joe
the operation completed. If the operation fails, the main form needs to show
another form. The problem I get is when the Callback returns it hangs the
app.
Here's the callback:
private void Callback(IAsyncResult ar)
{
System.Runtime.Remoting.Messaging.AsyncResult result =
(System.Runtime.Remoting.Messaging.AsyncResult)ar;
RequestHandler handler = result.AsyncDelegate as RequestHandler;
if (handler != null)
handler.EndInvoke(ar);
if (RequestComplete != null)
RequestComplete(this);
}
Any ideas?
-Joe