I have a simple C # application containing this line:
var mImage = System.Drawing.Image.FromFile(filename);
When you run this code on Windows (.NET), the image loads correctly. When running the same code on OS X (Mono), the application simply freezes. The debugger remains in this call forever. There is nothing exception.
The column shows that the application freezes:
System.Drawing.GDIPlus.GdiplusStartup ()
What could go wrong here?
PS: I have the latest versions of Xamarin Studio and Mono installed.
Boris source
share