RaiseEvent is frozen on .net 2005 platform

  • Thread starter Thread starter bob95226
  • Start date Start date
B

bob95226

Hi All,

I create a .net compact framework Window CE class library with a few
events using .net 2003, the application bundled with this library
doesn't work on .net 2005 platform (it works well for .net 2003),
after debugging, it turns out RaiseEvent MyEventName in that class
library is frozen on .net 2005 platform, "RaiseEvent MyEventName" is
called inside a thread, does that thread cause this issue or something
else?

Your input would be greatly appreciated.

Thanks

Bob
 
(e-mail address removed) wrote in 64g2000cwx.googlegroups.com:
"RaiseEvent MyEventName" is
called inside a thread, does that thread cause this issue or something
else?

Windows Forms are single threaded - if you raise an event in a thread and
handle it in the primary UI thread, you'll need to marshal the call back to
the GUI thread.

Do a search for InvokeRequired, BeginInvoke, and Invoke.
 
Back
Top