[Mono-list] Problem with Image::PropertyIdList

Peter Dennis Bartok peter at novonyx.com
Tue Mar 28 21:42:28 EST 2006


Depends. PropertyIdList should not fail, but it won't return real properties 
either. The 'bug' would be the generic error that's thrown. Let me try and 
run this tonight, am not at my mono machine right now.

Cheers,
 Peter



-----Original Message-----
From: "Abe Gillespie" <abe.gillespie at gmail.com>
To: <mono-list at lists.ximian.com>
Date: 28 March, 2006 18:55
Subject: [Mono-list] Problem with Image::PropertyIdList


Is this a bug?

Image img = Image.FromFile("/path/to/some/jpg/test.jpg");
int [] ids = img.PropertyIdList;

I get:
Unhandled Exception: System.Exception: Generic Error.
in [0x0006c] (at
/usr/local/src/mono/mono-1.1.13.6/mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs:178)
System.Drawing.GDIPlus:CheckStatus (Status status)
in [0x0000f] (at
/usr/local/src/mono/mono-1.1.13.6/mcs/class/System.Drawing/System.Drawing/Image.cs:644)
System.Drawing.Image:get_PropertyIdList ()
in (wrapper remoting-invoke-with-check)
System.Drawing.Image:get_PropertyIdList ()
in [0x0000c] (at /home/abe/Desktop/gps_pics/main.cs:16) App:Main
(System.String[] args)

Thanks.
-Abe
_______________________________________________
Mono-list maillist  -  Mono-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list




More information about the Mono-list mailing list