Rx 2.3.9, Ranorex.Imaging.Compare: OutOfMemory

Ask general questions here.
JayDee
Posts: 20
Joined: Wed May 26, 2010 8:53 am

Rx 2.3.9, Ranorex.Imaging.Compare: OutOfMemory

Post by JayDee » Wed Apr 20, 2011 4:08 pm

Hey,

we have some problems using Ranorex.Imaging.Compare(). We want to compare *.bmp (200 dpi) and get random OutOfMemory Exceptions back from the compare method. Another case is "Failed to load bitmap".

What can we do to handle those problems? We have like 1200 bitmaps per application and for us it doesn't matter if we take bmp or jpg (jpg would be first choice for performance reasons).

Best Regards! JayDee

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Rx 2.3.9, Ranorex.Imaging.Compare: OutOfMemory

Post by Support Team » Thu Apr 21, 2011 10:11 am

JayDee wrote:We want to compare *.bmp (200 dpi) and get random OutOfMemory Exceptions back from the compare method. Another case is "Failed to load bitmap".
Could you please post the complete exception text?
Does this exception occur while editing recordings/repositories inside Ranorex Studio or while running the tests?

Just out of curiosity: How come you have so many pictures inside your repository? Is Ranorex not able to identify the controls and therefore you use image based automation?

Regards,
Peter
Ranorex Team
.
Image

User avatar
slavikf
Posts: 104
Joined: Mon Sep 13, 2010 9:07 pm
Location: Toronto, Canada
Contact:

Re: Rx 2.3.9, Ranorex.Imaging.Compare: OutOfMemory

Post by slavikf » Mon Apr 25, 2011 6:06 pm

Also, as Alex was saying in another post:
OutOfMemory exception is also thrown by that method if the provided PixelFormat is wrong or not supported or the rectangle is not correct