Christopher David Howie wrote:
> 
> This is probably the main thread, if you are responding to a Gtk# event,
> since these events are dispatched on the main thread.  When you show the
> dialog, the Run() call will indeed block, but the main loop will be
> re-entered on the same thread so that events in the dialog can be
> processed.
> 
> So if some event occurs multiple times, the same event that triggers the
> code you are running to show the dialog, then that code will be
> re-entered recursively.
> 

Thanks for your response. You are correct in that this is event is being
dispatched from the main thread but my understanding was that the lock
should provide mutual exclusion between threads within the critical section.
Why is this not the case?
-- 
View this message in context: 
http://mono.1490590.n4.nabble.com/Creating-critical-section-for-unhandled-exception-handler-tp2225522p2225606.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.
_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to