Debug info hidden when calling C++ function from C# (VS2013) -


i have vs2013 solution consists of 2 projects:

  • a c# project
  • and c++ (clr/dll) project

i trying solve these problems, haven't been able far.

  1. if put break point in c++ code , run c# project, debugger doesn't break/halt when c++ code called c#.

  2. i can't debug (i.e. see values) of local variables in c++ entry function:

instead of seeing array of 0s, debugger shows 'cppimplementationdetails

  1. i warning when build solution in vs2013:

c:\program files (x86)\msbuild\12.0\bin\microsoft.common.currentversion.targets(1697,5):

warning msb3270: there mismatch between processor architecture of project being built "msil" , processor architecture of reference "c:\projects\myproject\debug\dspclasslibrary.dll", "x86".

this mismatch may cause runtime failures. please consider changing targeted processor architecture of project through configuration manager align processor architectures between project , references, or take dependency on references processor architecture matches targeted processor architecture of project.

the c# project target platform set : anycpu

the c++ project target platform set : win32

i not sure right setting or how solve problem.

  1. you have set "enable native code debugging" in project settings of c# project. breakpoints in native code reached. (in vs2010 often) have change debugger settings in c++/cli mixed debugging (it set auto default).

  2. see 1

  3. c# projects anycpu default. can run in 32bit or 64bit environment. c++ 32bit on default if created vs2013. should set c# build settings 32bit ensure work proper on different enviroments. setting "x86" 32bit.


Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -