Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

Using C++ dll in C# project

$
0
0

Hi everybody,

In C# code I need to use C++ dll. I have a test console project that works fine when I build it as exe. However, when I try to run it form VS by pressing F5 I get these errors:

'wwLocalConsoleTester.vshost.exe' (CLR v4.0.30319: wwLocalConsoleTester.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
The thread 0x2bc4 has exited with code 259 (0x103).
The thread 0x2498 has exited with code 259 (0x103).
'wwLocalConsoleTester.vshost.exe' (CLR v4.0.30319: wwLocalConsoleTester.vshost.exe): Loaded 'C:\_Siriusware\Dev\wwLocalConsoleTester\bin\Debug\wwLocalConsoleTester.exe'. Symbols loaded.
'wwLocalConsoleTester.vshost.exe' (CLR v4.0.30319: wwLocalConsoleTester.vshost.exe): Loaded 'C:\Program Files (x86)\Siriusware\Pool\ww_local.dll'. Cannot find or open the PDB file.
The program '[14900] wwLocalConsoleTester.vshost.exe' has exited with code 1073741855 (0x4000001f).

-------------------------------------------

I removed part of the OUTPUT. 

In my actual project I have the project I am working on and Test project. When I try to debug the test, it immediately terminates (the Dispose method of one of my classes is called) when it hit the line calling C++ function.

So, my question is - what should I do in order to debug my tests as normal? Is there any way to not require PDB files? I do not want to debug the C++ dll, I just want to be able to use result of the call of its method.

Thanks in advance.


For every expert, there is an equal and opposite expert. - Becker's Law


My blog


My TechNet articles



Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>