Page 1 of 1

Rx 2.3.9, Ranorex.Imaging.Compare: OutOfMemory

Posted: Wed Apr 20, 2011 4:08 pm
by JayDee
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

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

Posted: Thu Apr 21, 2011 10:11 am
by Support Team
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

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

Posted: Mon Apr 25, 2011 6:06 pm
by slavikf
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