V
Valerie Hough
I'm not entirely sure what the difference is between these two approaches.
In order to avoid reentrant code, I was using Control.BeginInvoke in my UI
to cause an asynchronous activity to be done on the UI's message loop. I
began to get System.ExecutionEngineException errors so (on the theory of do
something different if what you're doing isn't working) I switched to using
delegate.BeginInvoke with the appropriate EndInvoke and the problem
disappeared.
Does this make sense?
Is it possible to use Control.BeginInvoke with a matching EndInvoke ?
From my reading of the documentation, it seems as though
delegate.BeginInvoke is using a separate thread, in which case the invoked
code is not running on the UI's thread and therefore I have not solved my
reentrant code worries.
If it sounds like I am confused, it is probably because I am!
Thanks in advance for any help.
Valerie Hough
In order to avoid reentrant code, I was using Control.BeginInvoke in my UI
to cause an asynchronous activity to be done on the UI's message loop. I
began to get System.ExecutionEngineException errors so (on the theory of do
something different if what you're doing isn't working) I switched to using
delegate.BeginInvoke with the appropriate EndInvoke and the problem
disappeared.
Does this make sense?
Is it possible to use Control.BeginInvoke with a matching EndInvoke ?
From my reading of the documentation, it seems as though
delegate.BeginInvoke is using a separate thread, in which case the invoked
code is not running on the UI's thread and therefore I have not solved my
reentrant code worries.
If it sounds like I am confused, it is probably because I am!
Thanks in advance for any help.
Valerie Hough