Intel® ArBB variables not displayed correctly in Microsoft* Visual Studio* debugger -- How to resolve

Problem :

Intel® ArBB variables are not being displayed correctly while running in emulation mode in the Microsoft* Visual Studio* debugger.

Environment :

Microsoft* Windows* OSes
Microsoft* Visual Studio* 2008
Microsoft* Visual Studio* 2010

Root Cause :

This problem happens when the code is built with the '/CLR' option. Code built with this option is being debugged by the Visual Studio's managed code debugger, which is not supported by Intel® ArBB debugger integration.

Resolution :

Developers need to take explicit steps to prevent the Microsoft* Visual C++* compiler from generating managed code for the portions of their code that are using the Intel® ArBB library. To do this, the code in question can be surrounded with "managed" pragmas as follows:

#pragma managed(push, off) ... // Non-managed code ... #pragma managed(pop) 

For applications that do not need to be mixed-mode, the '/CLR' option can be turned off entirely to avoid this problem:

  1. Open "Properties" for the project, go to "Configuration Properties > General > Common Language RunTime Support", change the value to "No Common Language RunTime Support". Then,
  2. Go to "Configuration Properties > C/C++ > Common Language RunTime Support", change the value to "No Common Language RunTime Support".
For more complete information about compiler optimizations, see our Optimization Notice.