As I said, you will not get the real properties. We always return 1 (fake). But it shouldn't crash.
Cheers, Peter -----Original Message----- From: "Abe Gillespie" <[EMAIL PROTECTED]> To: "Peter Dennis Bartok" <[EMAIL PROTECTED]> Cc: <[email protected]> Date: 28 March, 2006 20:01 Subject: Re: [Mono-list] Problem with Image::PropertyIdList Well, as a follow-up, what I was really trying to do is loop through all the PropertyItem objects in img.PropertyItems. Keep in mind I used the same image here. In Windows (MS.Net) there are 51 objects in the collection in Linux (Mono) there is only 1. Let me know if you need the image for testing. Thanks. -Abe On 3/28/06, Peter Dennis Bartok <[EMAIL PROTECTED]> wrote: > 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 _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
