[Gtk-sharp-list] Exceptions in signal handlers

Matze Braun matze at braunis.de
Sat Feb 11 04:57:18 EST 2006

Is there a way in gtk# to generally catch all exceptions that are thrown
from signal handlers? (Except manually adding try{} catch{} to all your
signal handlers)

The problem I have is the following: A common problem in all
applications is that they throw exceptions from time to time :) Now in
gtk# this often happens after the user has invoked a function by
clicking on a button, or something else that produced a glib signal.
Currently this leads to the whole application to be aborted and shut
down. However a much nicer reaction to this would be to display a
warning message to the user that this function just produced an
exception, but to keep the application running so that the user has
chance to save his data and use the non-buggy parts of the application.


More information about the Gtk-sharp-list mailing list