DarkArius / aforge

Automatically exported from code.google.com/p/aforge
Other
0 stars 0 forks source link

Access Violation in Clone() for ROI subimage aligned with bottom of original image #401

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run attached code (Microsoft Unit Test).

What is the expected output? What do you see instead?

Expected: all four tests pass
Instead: often (not always) the RoiClone_bottom test fails with 
System.AccessViolationException

What version of the product are you using?
AForge 2.2.5 (installed via NuGet)
Visual Studio Express 2013

Please provide any additional information below.
The failure usually occurs the first time the test is run after compiling; 
after that, I see failures in perhaps one execution out of ten.

The code being tested (Extras.Roi()) is taken from a forum post by A.Kirillov:
http://www.aforgenet.com/forum/viewtopic.php?f=2&t=2141&p=5563#p5564

Original issue reported on code.google.com by kismet...@gmail.com on 3 Apr 2015 at 8:08

Attachments: