2008-05-27 Mike Kestner <mkestner@novell.com>

* generator/Method.cs (GenerateBody): when generating value type
	methods, we should demarshal the 'this' memory before any ref or
	out parameters in the event that someone passes 'this' as a param.
	That will ensure that an updated value coming back from the native
	side ends up in the memory location.

svn path=/trunk/gtk-sharp/; revision=104166
This commit is contained in:
Mike Kestner 2008-05-27 17:04:06 +00:00
parent d9721b63dc
commit 64ff72c07f
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,11 @@
2008-05-27 Mike Kestner <mkestner@novell.com>
* generator/Method.cs (GenerateBody): when generating value type
methods, we should demarshal the 'this' memory before any ref or
out parameters in the event that someone passes 'this' as a param.
That will ensure that an updated value coming back from the native
side ends up in the memory location.
2008-05-22 Mike Kestner <mkestner@novell.com>
* gtk/Widget.custom: guard against MissingIntPtrCtorException in

View file

@ -285,9 +285,9 @@ namespace GtkSharp.Generation {
sw.WriteLine(indent + "\t\t\t" + retval.CSType + " ret = " + retval.FromNative ("raw_ret") + ";");
}
Body.Finish (sw, indent);
if (!IsStatic && implementor != null)
implementor.Finish (sw, indent + "\t\t\t");
Body.Finish (sw, indent);
Body.HandleException (sw, indent);
if (is_get && Parameters.Count > 0)