Skip to content

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

@GoogleCodeExporter

Description

@GoogleCodeExporter
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:

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions