I am writing the azure function that is using some openCV C++ dll. My solution contains 4 projects.
Functions from c++ dll are exported with extern "C" __declspec(dllexport). Wrapper class imports it with DllImport.
Platform target for all projects is set to x64.
My problem is to run the solution under Visual Studio. Every time it tries to run the function from my c++ dll it crashes with 0x80000003 code.
The program '[9516] dotnet.exe' has exited with code -2147483645 (0x80000003).
However when I publish the azure function or .net core app and specify the target runtime to win-x64 everything works fine.
What I need to setup in Visual Studio in order to be able to run and debug my solution without the crashing?
User contributions licensed under CC BY-SA 3.0