I was writing a c++/cli wrapper for a native c++ application, and when I finished writing code, it builds so well.
The native c++ is built to a static library (.lib) file, and I referenced it in my c++/cli wrapper, then I wrote a c# console application to test the wrapper. However, the debugger can be launched.If I commented the lines which referened the code in the wrapper, it worked well.
So when the debugger can not be launched I found that there's an unhandled exception appeared in the output window of visual studio: unhanded exception occured in msvcp90d.dll, access violation error writing location: 0ff......
Can anyone list some common senarios could cause this issue? Very appreciated with any answer.