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" <[EMAIL PROTECTED]>
To: <[email protected]>
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  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list


_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to