Hi,
It's unclear to me what your issue is. Would it be possible for you to
repost with a more illustrative code example?
Thanks
-Joel.
Quote:
From: "=?Utf-8?B?c2Vhbg==?=" <anonymous (AT) discussions (DOT) microsoft.com
Subject: GetInvocationList causing error?
Date: Mon, 5 Apr 2004 13:01:07 -0700
Newsgroups: microsoft.public.dotnet.framework.clr
Hello, a call to:
drEvent.BeginInvoke(secondsDelay, callback, asyncState) works well, but
|
when I do this:
System.Delegate[] il = del.GetInvocationList();
((DelayedResponseDelegate) il[0]).BeginInvoke(secondsDelay, callback,
asyncState);
a subsequent call to EndInvoke from inside the callback never returns.
Why is this happening? The sizeof il is 1 so shouldn't the two snippets of
code be equivalent?
Thank you