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
Rx 2.3.9, Ranorex.Imaging.Compare: OutOfMemory
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Rx 2.3.9, Ranorex.Imaging.Compare: OutOfMemory
Could you please post the complete exception text?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".
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
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