G
Guest
Hi there,
i have an object O1 in a thread context C1. This object BeginInvokes() a
loop-oriented method M2 on a second object O2 thereby creating a new thread
context C2 for O2.M2. O1 has before registered on an event eventually fired
by O2.M2. This eventually results in executing the handler function O1.H1 on
thread context C2. This is not thread safe without some provision. Can i
force the execution thread of the handler O1.H1 back to C1 as it is done by
Control.BeginInvoke(). The event firing in O2.M2 is done using some
construction like handler.BeginInvoke() but i suppose this doesnt help.
Thanks for your help
Peter
i have an object O1 in a thread context C1. This object BeginInvokes() a
loop-oriented method M2 on a second object O2 thereby creating a new thread
context C2 for O2.M2. O1 has before registered on an event eventually fired
by O2.M2. This eventually results in executing the handler function O1.H1 on
thread context C2. This is not thread safe without some provision. Can i
force the execution thread of the handler O1.H1 back to C1 as it is done by
Control.BeginInvoke(). The event firing in O2.M2 is done using some
construction like handler.BeginInvoke() but i suppose this doesnt help.
Thanks for your help
Peter