Board index » Visual Studio » delegate invoke behavior

delegate invoke behavior

Visual Studio308
hi,



given the following:

client

invokehandler

stmt 3

stmt 4

end client





object with delegate

stmt 1

stmt 2

delegate.invoke

stmt 5

stmt 6

end object



just trying to understand the invoke behavior. when the object invokes its

delegate does stmt 3 and stmt 5 run at the same time. whenever i try to debug

and the debug line is on stmt 3 and i try to step to stmt 4 the debug line

just disappears.

and all stmt 3 and 4 is enabling 2 timers on a form.



any ideas?



thanks,

mj


-
 

Re:delegate invoke behavior



Quote
when the object invokes its

delegate does stmt 3 and stmt 5 run at the same time.



No, not when invoking the delegate synchronously.







Mattias



--

Mattias Sjögren [MVP] mattias @ mvps.org

www.msjogren.net/dotnet/">www.msjogren.net/dotnet/ | www.dotnetinterop.com">www.dotnetinterop.com

Please reply only to the newsgroup.

-