Re: [Mono-list] Regression in Winforms Support for version 3.0
Hi, If it's a simple fix, create a patch and submit it for inclusion. It doesn't look that bad to fix, just something in a shell script somewhere... Mmmm... I've checked the gtihub's repo out, and it seems it has been already fixed, though the bugtrack system has not been updated: http://bugzilla.xamarin.com/show_bug.cgi?id=8309 https://github.com/mono/mono/commits/master/data/config.in -- Baltasar (baltas...@gmail.com http://baltasarq.info/) ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Regression in WinForms support
On 08.04.2014 11:40, Baltasar García Perez-Schofield wrote: Hi, there. While trying to execute my app using WinForms (created with Mono and MonoDevelop, and working just right up until now), I have stumbled with this, using Windows 7: == Unhandled exception: ...snip... missing \tmp\lib\libgdiplus.so == I've installed the last version of Mono (3.2.3) from the mono webpage for Windows. I've looked for help and found: http://www.mono-project.com/DllNotFoundException However, this only seems to apply to Linux distributions, not for Windows. I suppose the DLL is not missing, since it should be using the one provided by Windows. Can I have some help? Why did this work transparently in previous versions of Mono and now it does not? Because bugs happen :) Locate $mono-prefix/etc/mono/config and add an os=!windows attribute to all gdiplus gdi32 DLL mapps. Robert ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Regression in Winforms Support for version 3.0
Hi, all of you. I've finally found a solution to this problem by myself. Since probably many people will stumble upon this, I think it is better to somehow register it. The problem seems to be in System.Drawing. When you try to launch an application using WinForms, it crashes with: == Unhandled exception ...snip... Missing dll: /tmp/install/lib/libgdiplus.so == This is particularly confusing on Windows, where one would think this file should be already present. The key to this problem is already in the Xamarin bugtrack system, bug 8309: https://bugzilla.xamarin.com/show_bug.cgi?id=8309 The problem seems to be related to the following two lines in the file $INSTDIR\etc\mono\config: == dllmap dll=ggdiplus target=/tmp/install/lib/libgdiplus.so / dllmap dll=ggdiplus.dll target=/tmp/install/lib/libgdiplus.so / == Being INSTDIR the installation directory of mono. Note that this happens in Windows, maybe that etc could be confusing, but it is just a subdirectory of the mono installation. Removing both lines immediately solves the problem. == Because bugs happen :) Locate $mono-prefix/etc/mono/config and add an os=!windows attribute to all gdiplus gdi32 DLL mapps. == Thanks Robert. I found the solution just before reading your message. I suppose I've been more taxative. This bug invalidates the use of this version of Mono for any final user trying to run an application employing WinForms, and there are quite a lot out there. An yep, bugs happen. However, the bug was found in 11/2012 (mono 3.0.1), and bug 14586, a duplicate of this bug, was (re-)found in 09/2013. Currently, in 4/2014 (mono-3.2.3), the bug has not still been solved, while the fix seems just to add an os=!windows attribute to those lines. I understand that WinForms is not a valuable asset for Xamarin, but this seems strange anyway. -- Baltasar ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Regression in Winforms Support for version 3.0
Hi, An yep, bugs happen. However, the bug was found in 11/2012 (mono 3.0.1), and bug 14586, a duplicate of this bug, was (re-)found in 09/2013. Currently, in 4/2014 (mono-3.2.3), the bug has not still been solved, while the fix seems just to add an os=!windows attribute to those lines. I understand that WinForms is not a valuable asset for Xamarin, but this seems strange anyway. If it's a simple fix, create a patch and submit it for inclusion. It doesn't look that bad to fix, just something in a shell script somewhere... Paul -- Out now from Packt Publishing - Xamarin Mobile Application Development for iOS - my first book http://www.packtpub.com/xamarin-mobile-application-development-for-ios/book ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Regression in WinForms support
Hi, there. While trying to execute my app using WinForms (created with Mono and MonoDevelop, and working just right up until now), I have stumbled with this, using Windows 7: == Unhandled exception: ...snip... missing \tmp\lib\libgdiplus.so == I've installed the last version of Mono (3.2.3) from the mono webpage for Windows. I've looked for help and found: http://www.mono-project.com/DllNotFoundException However, this only seems to apply to Linux distributions, not for Windows. I suppose the DLL is not missing, since it should be using the one provided by Windows. Can I have some help? Why did this work transparently in previous versions of Mono and now it does not? -- Baltasar ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list