[Kde-bindings] playground/bindings/kimono

Richard Dale Richard_Dale at tipitina.demon.co.uk
Fri Mar 16 12:38:45 UTC 2007


SVN commit 643127 by rdale:

* When constructing an instance via CreateInstance() the CreateProxy()
  method is now optional, so just don't call it if not found.

CCMAIL: kde-bindings at kde.org



 M  +2 -0      ChangeLog  
 M  +3 -4      SmokeMarshallers.cs  


--- trunk/playground/bindings/kimono/ChangeLog #643126:643127
@@ -4,6 +4,8 @@
 	  Attribute was being generated for them
 	* Fixed bug in invoking constructors where wrapper instances were being
 	  created twice
+	* When constructing an instance via CreateInstance() the CreateProxy()
+	  method is now optional, so just don't call it if not found.
 
 2007-03-14  Richard Dale  <rdale at foton.es>
 
--- trunk/playground/bindings/kimono/SmokeMarshallers.cs #643126:643127
@@ -366,11 +366,10 @@
 			MethodInfo proxyCreator = klass.GetMethod("CreateProxy", BindingFlags.NonPublic 
 																	| BindingFlags.Instance
 																	| BindingFlags.DeclaredOnly);
-			if (proxyCreator == null) {
-				Console.Error.WriteLine("CreateInstance() proxyCreator method missing");
-				return (IntPtr) 0;
+			if (proxyCreator != null) {
+				proxyCreator.Invoke(result, null);
 			}
-			proxyCreator.Invoke(result, null);
+
 			return (IntPtr) GCHandle.Alloc(result);
 		}
 



More information about the Kde-bindings mailing list