I have a simple C# Application containing this line:
var mImage = System.Drawing.Image.FromFile(filename);
When running this code on Windows (.NET), the image is loaded correctly. When running the same code on OS X (Mono), the application just hangs. The debugger stays in that call forever. No exception no nothing.
The callstack shows the application hangs at:
System.Drawing.GDIPlus.GdiplusStartup ()
What could go wrong here?
PS: I have the latest versions of Xamarin Studio and Mono installed.