[Gtk-sharp-list] Upcoming problems.

Mike Kestner mkestner@speakeasy.net
27 May 2003 11:41:56 -0500


On Mon, 2003-05-26 at 20:49, Rachel Hestilow wrote:
> On Mon, 2003-05-26 at 17:53, Miguel de Icaza wrote:
> >    The bad news is that there are 162 cases like this on the binding,
> > and we are going to need Mike's help to fix this.

Surely there are not 162 instances of const char * returns.  It seems to
me like the majority of string returns in gtk are owned by the caller. 
We should only be changing the DllImports for those that aren't owned by
us.

So that is going to require an audit of those API calls and some tagging
in the XML. Otherwise, we are going to leak all the owned strings. It
should be a pretty small change to the generator to handle a tag like
that.

> I've got some free time so I'll see if I can fix this tonight. Mike, I
> know you had some more pending changes to the generator, so sorry in
> advance if I cause any conflicts :-).

If you have the time, great.  This will most likely be isolated to
Method.cs, and I don't think I've changed it much, if at all.

Mike