467,894 Members | 1,725 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,894 developers. It's quick & easy.

do i need to create NEW delegate each time i use invoke ?

few questions about Delegate in vb.net :

do i need to create NEW delegate each time i use invoke ?

or i can use the same delegate object when using specific invoke ?

and if can use the same one, in case its multithread application, i need to
put it in synclock ?

--------------
can i change the address of parameter after i created the delegate ?
--------------
Nov 20 '05 #1
  • viewed: 1042
Share:
1 Reply
do i need to create NEW delegate each time i use invoke ?
No

and if can use the same one, in case its multithread application, i need to
put it in synclock ?
No, not if all you do is call the delegate.

can i change the address of parameter after i created the delegate ?


Then you create a new delegate. You can't re-target an existing
delegate to another method.

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Srinivasa Ra via .NET 247 | last post: by
9 posts views Thread by Terry Olsen | last post: by
11 posts views Thread by ohmmega | last post: by
7 posts views Thread by Stefan Hoffmann | last post: by
5 posts views Thread by puzzlecracker | last post: by
10 posts views Thread by vcquestions | last post: by
reply views Thread by MrMoon | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.