Debug .net core app with custom c++ dll in Visual Studio

-1

I am writing the azure function that is using some openCV C++ dll. My solution contains 4 projects.

  • c++ dll with openCV code,
  • .net core library with wrapper class
  • azure function project
  • .net core application project for some testing.

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?

c#
c++
visual-studio
.net-core
azure-functions
asked on Stack Overflow Jul 14, 2019 by Cartman • edited Jul 14, 2019 by user1781290

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0