CompareBitmaps through error

Description: Feel free to ask here any questions about Image Comparer. Any suggestions are welcome!
Moderators: Viki, Gus, datasource, Gemini, admins

Reputation: 0
With us: 10 years 9 months

Post #1by aja » Fri May 10, 2013 2:33 pm

I have one source file and 5K target files for image comparison.But after
comparison of 533 images.Image comparison method through exception.

Below is my code:

Code: Select all

IntPtr imgintptr = img1.GetHbitmap();
                for (int i = 0; i < fileInfo.Count(); i++)
                        Bitmap img2 = new Bitmap(fileInfo[i].FullName);
                        IntPtr img2intptr = img2.GetHbitmap();
                        CompareBitmaps(imgintptr, img2intptr);
                    catch (Exception excep) { throw excep.InnerException; }


Exception object: External component through an exception.
InnerException: Object reference not set to an instance of an object.


Reputation: 0
With us: 14 years 10 months

Post #2by Gemini » Mon May 20, 2013 6:46 pm

Could you write to and describe the problem?

Bolide Software Support Team

Return to “Image Comparer”

Who is online (over the past 5 minutes)

Users browsing this forum: 2 guests