Ask Your Question

Revision history [back]

openCV in a c++/CLI

Hi.

I'm trying using OPENCV in a c++/CLI winform project. (VS2015, OPENCV310 x86)

Classes accesing OPENCV code are with 'No Common Language RunTime Support' switch. Then, I call those classes from managed code as button's events, etc.

I can built the project in x86 debug mode but, when trying executing it in debug I find this like:

Exception thrown at 0x779E0366 (ntdll.dll) in ProjectConCV.exe: 0xC0000005: Access violation reading location 0xFB531FA9.

I'm a bit desperate .When doing opencv win32 projects on the same machine, then no problems.

I've read using this approach(c++/CLI) is feasible, I mean, mixing 'native classes' calling OPENCV code and then, these being called from managed code in the same project.

Please, help me to know what I am doing wrong. Thx.