When trying to load either a ".bmp", ".png" or ".jpg" on OSX 10.7.3 using mono's version of the System.Drawing.Bitmap object the applications just hangs. I get no error, the app just is stuck on the Bitmaps constructor...
When I run the same code on (Arch)Linux or Windows everything works fine.
public static void Main (string[] args)
{
using (var bitmap = new Bitmap("/....../image.bmp"))
{
}
Console.WriteLine ("Hello World!");// Never gets here...
}
If I pause the application in debug mode it opens the "disassembly" window and shows its stuck on this line:
call Status System.Drawing.GDIPlus:GdiplusStartup (UInt64, GdiplusStartupInput, GdiplusStartupOutput)
NOTE: After pausing the application in debug mode a couple of times it "Magically" started to work while writing this. I promis I did not change any code. Anybody know what can cause "System.Drawing.GDIPlus" to hang so I know how to avoid it?? Is there a mono codex setting file or something that could have bin messed up?