When I run this method (DisplayLayout:SaveAsXml), I get the following error
System.Runtime.InteropServices.ExternalException: A generic error occured in GDI+
Here is the code that raises this error.
/* First I dynamically create valuelist items and attach to valuelist assigned to the grid column */
/* Next I assign the image property for each dynamically created valuelistitem */
If I change the above code to the code below assign the image property using an OrderedDictionary collection, I don't get the error.
This is the method that builds the collection (it is built up when the software launches)
This is the method that gets the image out of the collection that is assigned to the value list image property
So if I change my code above from
to this... /* just hardcoded a key value that I know is in the collection */
it works fine
What I don't understand is what the difference is since both GetStoredImage and Base64ToImage both return type System.Drawing.Image.
Any help would be appreciated.
Doug
Hi Doug,
It's very hard to tell what's happening from the code snippets and the error message you listed here.
Can you post a small sample project demonstrating the exception? You can attach a zip file to your post by going to the Options tab.
If you cannot do that, then posting the entire call stack of the exception might help.