[Kde-bindings] KDE/kdebindings/csharp/qyoto
Richard Dale
rdale at foton.es
Fri Jun 1 09:39:21 UTC 2007
On Thursday 31 May 2007, Arno Rehn wrote:
> > But I think the new marshaller is correct and we shouldn't introduce a
> > memory leak for all 'int&' arg types just to fix this problem. The
> > QApplication constructor 'int&' should be special cased, along with any
> > others like it.
>
> Shall we special case each int& or only some specific ones? In case of the
> last one, how can we get the method name or signature from within a
> marshaller?
Maybe just ignore smoke and call the methods directly from a C wrapper
function? I don't like doing special casing inside the marshaller really.
Another way is to make the C# stack allocated for the QApplication method
calls in a static variable, but I don't think that is possible with structs.
Then the pointer to an int in the smoke stack wouldn't be freed.
-- Richard
More information about the Kde-bindings
mailing list