[Gtk-sharp-list] handling uncaught exceptions in Gtk#

Ronaldo Nascimento sgtnasty at gmail.com
Sun Aug 7 19:40:13 EDT 2011


thats it!
thanks

On Sun, 2011-08-07 at 16:59 -0400, Doug Blank wrote:
> On Sun, Aug 7, 2011 at 3:57 PM, Ronaldo Nascimento <sgtnasty at gmail.com> wrote:
> > I remember an article somewhere on the mono-project Gtk# page about
> > setting an event handler to catch all exceptions.
> >
> > Can anyone point me to this article or show the code?
> 
> I don't know the article, but in IronPython using Gtk# that would be:
> 
> import GLib
> # Setup Runtime environment:
> def handle_exception(arg):
>    ...
> GLib.ExceptionManager.UnhandledException += handle_exception
> 
> Google "GLib.ExceptionManager.UnhandledException" for details in other
> languages.
> 
> Hope that helps,
> 
> -Doug
> 
> > Thanks
> >
> > --
> > Ronaldo Nascimento <sgtnasty at gmail.com>
> >
> > _______________________________________________
> > Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
> >




More information about the Gtk-sharp-list mailing list