CompareBitmaps through error

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

aja
aja
Reputation: 0
With us: 10 years 10 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++)
                {
                    try
                    {
                        Bitmap img2 = new Bitmap(fileInfo[i].FullName);
                        IntPtr img2intptr = img2.GetHbitmap();
                        CompareBitmaps(imgintptr, img2intptr);
                        img2.Dispose();
                    }
                    catch (Exception excep) { throw excep.InnerException; }

                }


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


[/list][/list]

Gemini
Gemini
Reputation: 0
With us: 14 years 11 months

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

Hi!
Could you write to support@bolidesoft.com and describe the problem?

Regards,
Bolide Software Support Team


Return to “Image Comparer”

Who is online (over the past 5 minutes)

Users browsing this forum: 3 guests