I have a collection of tif scanned documents that have been converted to jpeg using GraphicsMagick. A small percentage of the jpeg images fail to load into GdPicture. An AccessViolationException is thrown when calling CreateGdPictureImageFromFile. The message given is:
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
The really strange thing is that the same image that fails can usually be loaded successfully if it is loaded after another image that GdPicture likes. I've loaded the same jpeg into several other image viewers without any problems (MS Paint, Irfanview, Windows Photo Viewer).
I have tested this with the latest versions of GdPicture.NET V6 and V7. The same error is given when using the "Document Viewer With Thumbnails" sample C# code that is distributed with the library.
I've attached one of the bad images.
Any help would be greatly appreciated. Thanks.
