mono / xwt

A cross-platform UI toolkit for creating desktop applications with .NET and Mono
MIT License
1.37k stars 241 forks source link

XamMacTest app crashes on run #723

Open gregpico opened 7 years ago

gregpico commented 7 years ago

using Visual Studio for Mac 7.1.3 with latest from master on Sierra 10.12.5, XamMacTest compiles but crashes when run (as does MixedGtkMacTest).

GtkOnMacTest and GtkTest run and show the test suite.

any suggestions, or known working combinations?

gregpico commented 7 years ago

I managed to get the sample running by creating a new Cocoa App project with

Samples.App.Run (Xwt.ToolkitType.XamMac);

in the Main.cs, referencing Xwt, Xwt.XamMac, and Samples, and changing the Target Framework to .Net 4.5

This gives a compile error due to https://bugzilla.xamarin.com/show_bug.cgi?id=58811

so a temporary hack before the d15.4 fix was to comment out the DllImports to LaunchServices in ImageHandler.cs

gregpico commented 7 years ago

updating to the beta with Xamarin.Mac 3.8.0 allows the DllImports of LaunchServices to compile and run properly.