When I try to download ".bmp", ".png" or ".jpg" in OSX 10.7.3 using the monophonic version of the System.Drawing.Bitmap object, the applications simply freeze. I am not getting errors, the application just gets stuck in 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!");
If I pause the application in debug mode, it opens the "disassembly" window and shows that it is stuck in this line:
call Status System.Drawing.GDIPlus:GdiplusStartup (UInt64, GdiplusStartupInput, GdiplusStartupOutput)
NOTE. After pausing the application in debug mode several times, it "Magically" began to work when writing this message. I promised that I hadn’t changed anything. Does anyone know what can make "System.Drawing.GDIPlus" hang, so I know how to avoid it? Is there a mono codex settings file or something that could ruin a bit?
zezba9000
source share