Bitmap image = Imaging.Load (RestoreDB.SSDir+"TC207.png"); Validate.ContainsImage (repo.FormOIS_WinStation_11_EyeSca.Element59648Info, image.Clone ( new Rectangle (3,3,imageOrig.Width-6,imageOrig.Height-6),image.PixelFormat), Imaging.FindOptions.Default, "TC207: Validation of 'Sharpened proofsheet' image", false);i got following error:
Unexpected exception occured: System.OutOfMemoryException: Out of memory.
at System.Drawing.Bitmap.Clone(Rectangle rect, PixelFormat format)
at Review1.Recording1.TC207() in c:\AutoRex\Review1\Review1\Recording1.UserCode.cs:line 1514
at Review1.Recording1.Start() in c:\AutoRex\Review1\Review1\Recording1.cs:line 159
at Review1.Program.Main(String[] args) in c:\AutoRex\Review1\Review1\Program.cs:line 36
Any idea where to go to troubleshoot?