OK - found a solution - I just disabled the event as soon as entering the
handler and enabled it at the end again - works well!
Ole
> The pin_changed event from serial port is being queued while the
> eventhandler is busy, but how do I change it so that the new event is
[quoted text clipped - 3 lines]
> Thanks
> Ole
Greg Young - 30 Jun 2006 21:43 GMT
This is not necesarily a solution it depends on how the event is being
dispatched.
The event could be dispatched concurrently on multiple threads in which case
you code could still end up being re-entrant.
Cheers,
Greg Young
MVP - C#
http://codebetter.com/blogs/gregyoung
> OK - found a solution - I just disabled the event as soon as entering the
> handler and enabled it at the end again - works well!
[quoted text clipped - 8 lines]
>> Thanks
>> Ole