[Gtk-sharp-list] Mono.Cairo DllImport calling convention

Mike Kestner mkestner at gmail.com
Sun Jul 24 21:53:52 EDT 2011

On Sun, Jul 24, 2011 at 7:30 PM, diekleinekuh <markus-henschel at gmx.de>wrote:

> Oh, Ok. So gapi-cdecl-insert is not used for cairo in 2.12 because there
> are no callback delegates there? And how are native function calls handled
> in 2.12 then? I didn't see any CallingConvention set for the native PInvoke
> calls. Doesn't this mean stack memory leaks on every such call on Windows
> where the default is stdcall? Or does the .NET/Mono runtime take care of
> this by automatically balancing the stack if it detects a leak?

In master, the calling convention is explicitly specified in the DllImports
in generated and custom code.  That would not be hard to do in the 2.12
branch.  A one-line generator change and a sed script to update all the
.custom and .cs files.  If someone wants to give me a github pull request
for that, I'd be happy to merge it.  :-)  Feel free to open a bug report for
it otherwise and I'll get to it eventually.

> Great. I really hated this script because it magically deleted pdb files
> for the libraries it was used on. But what will be the next gtksharp version
> to be released? Will it be a bugfixing release for 2.12 or something new?

There is active hacking on master which will result eventually in a 3.0
series, probably with one or two previews/betas prior to final.  The banshee
port is the primary driver of that work, and I would imagine we'll kick a
release out as soon as they have banshee running on it.  Master is already
in pretty good shape if people want to start playing with the 3.0 API in
their apps.  The more people that use it and help find the bugs, the sooner
it will be ready.

I intend to provide at least one more 2.12 release.  The current installer
is in pretty bad shape and there's a few other bugs I'd like to fix.  This
is all nights and weekends volunteer work for me now though, so the timing
will be more or less "when it's ready".

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20110724/37001ccb/attachment.html 

More information about the Gtk-sharp-list mailing list