HighTechTalks DotNet Forums  

RE: GetInvocationList causing error?

Dotnet Framework (CLR) microsoft.public.dotnet.framework.clr


Discuss RE: GetInvocationList causing error? in the Dotnet Framework (CLR) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default RE: GetInvocationList causing error? - 04-16-2004 , 03:11 PM






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


Quote:


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.