From b107fdd7c0bba584b72b5601454816546d8f4b4e Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Wed, 28 Mar 2012 21:33:48 -0500 Subject: [PATCH] Improve MissingCtorException message. --- glib/ObjectManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/ObjectManager.cs b/glib/ObjectManager.cs index 937696473..9db8f1660 100644 --- a/glib/ObjectManager.cs +++ b/glib/ObjectManager.cs @@ -44,7 +44,7 @@ namespace GLib { try { obj = Activator.CreateInstance (type, flags, null, new object[] {raw}, null) as GLib.Object; } catch (MissingMethodException) { - throw new GLib.MissingIntPtrCtorException ("GLib.Object subclass " + type + " must provide a protected or public IntPtr ctor to support wrapping of native object handles."); + throw new GLib.MissingIntPtrCtorException ("Unable to construct instance of type " + type + " from native object handle. Instance of managed subclass may have been prematurely disposed."); } return obj; }