Bug 8433 - [gtk] Several delegates are missing the UnmanagedFunctionPtr attribute
Summary: [gtk] Several delegates are missing the UnmanagedFunctionPtr attribute
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks: 8426
  Show dependency tree
 
Reported: 2012-11-15 14:35 UTC by Alan McGovern
Modified: 2012-11-16 17:13 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Alan McGovern 2012-11-15 14:35:11 UTC
The GLib.LogFunc, GLib.PrintFunc and Gtk.Toolbar/WeakNotify types are all missing the UnmanagedFunctionPtr attribute specifying they need to be marshalled as 'cdecl'. This is causing issues when the delegates are invoked on windows.
Comment 1 Alan McGovern 2012-11-15 14:36:18 UTC
cc'ing duncan and pj. Can we get those changes into whatever branch we release from and issue a new gtk-sharp build for windows with those attributes added? At the moment enabling logging on windows can (and apparently is) causing random crashes in monodevelop.
Comment 2 Duncan Mak 2012-11-16 17:13:19 UTC
Fixed in  http://files.xamarin.com/~duncan/gtk-sharp-2.0-3.msi