Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
Fails to execute in Windows 64bit(only!I know is not supported but...) a compiled executable from a solution with multiple projects.
Create a Library with a testClass.cs
Reference it in a new GTKSharp Application project (same solution)
Compile manual or with mono-develop
Linux x86_64 - Runs Ok.
Mac - Runs Ok.
Win32 - Runs Ok.
Win64 - (7 all platforms tested) - fails to execute!
What does fail to execute and how can I reproduce it ?
Environment Windows 7 (tested in all platforms) 64-bit.
1- Open monodevelop > New Solution.
2- Create a Library Project, name it bug.Test
3- Add a new GTK Project to solution and name it bug.Uiform
4- Set bug.Uiform as startup project
5- Build it , go to project folder/bin/debug and try to execute the executable.
Windows Generic Error : "application stopped working"
This is most likely because there is no GTK# for the 64-bit MS CLR.
New executable projects created in MD are set to target the x86 runtime (VS does the same). This means that on .NET they run on the 32-bit CLR (Mono ignores the flag). Was your project somehow created without this setting, or did you unset it? Or maybe you set the configuration to Debug}AnyCPU instead of Debug|x86?
In the latter case I'd say this is a consequence of the usability problems in our solution configuration management.
Tryed multi configuration in compiler options but still the same problem.
Win64 only. Where can i set the 32-bit CLR flag to be ignored ?
The setting is in compiler options: http://screencast.com/t/izkFXaQ2Ql1g
For GTK# projects, that *must* be set to x86. It doesn't affect Mac or Linux, but enables the binaries to run correctly on x64 Windows by forcing the 32-bit .NET runtime when running on the x64 OS.
That solved the problem. Thank you.