mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-03-01 15:28:10 +00:00
Improve MissingCtorException message.
This commit is contained in:
parent
0cd50893c5
commit
b107fdd7c0
|
@ -44,7 +44,7 @@ namespace GLib {
|
||||||
try {
|
try {
|
||||||
obj = Activator.CreateInstance (type, flags, null, new object[] {raw}, null) as GLib.Object;
|
obj = Activator.CreateInstance (type, flags, null, new object[] {raw}, null) as GLib.Object;
|
||||||
} catch (MissingMethodException) {
|
} 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;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue