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

  • Thread starter Thread starter Daylor
  • Start date Start date
D

Daylor

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 ?
 
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
 
Back
Top