Skip to content
This repository has been archived by the owner on Jul 6, 2020. It is now read-only.

Sample 13 AccessViolationException #7

Open
obie73 opened this issue May 29, 2017 · 5 comments
Open

Sample 13 AccessViolationException #7

obie73 opened this issue May 29, 2017 · 5 comments

Comments

@obie73
Copy link

obie73 commented May 29, 2017

When run line 31

extractor.Compute(img1, ref keypoints1, descriptors1);

Throw an AccessViolationException

I updated packages via nuget. Does not fix problem.

Thanks for your work!

@VahidN
Copy link
Owner

VahidN commented May 29, 2017

I think you should follow this issue here

@obie73
Copy link
Author

obie73 commented May 29, 2017

The solution of this link does not fix the issue :(

@nccwarp9
Copy link

same here, I get System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.' at
extractor.Compute(img1, ref keypoints1, descriptors1);

@gerwalk
Copy link

gerwalk commented Nov 15, 2018

+1

[ INFO:0] Initialize OpenCL runtime...

Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at OpenCvSharp.NativeMethods.features2d_Feature2D_compute1(IntPtr obj, IntPtr image, IntPtr keypoints, IntPtr descriptors)

@gerwalk
Copy link

gerwalk commented May 1, 2019

Fixed:
Change the extractor from type BRIEF to FREAK on line 28:

var extractor = FREAK.Create();

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants