[Gtk-sharp-list] handling uncaught exceptions in Gtk#
Ronaldo Nascimento
sgtnasty at gmail.com
Sun Aug 7 19:43:56 EDT 2011
And with your reference to the object i needed i found the article
http://www.mono-project.com/GtkSharpNewInVersion2x
thx again
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