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

Doug Blank doug.blank at gmail.com
Sun Aug 7 16:59:16 EDT 2011


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