Unhandled Exceptions when Debugging OpenMP applications

Problem :
When debugging OpenMP* applications built with the Intel® C++ or Fortran Compiler an unhandled exceptions dialog like the following

First-chance exception at 0x74f9b9bc (KernelBase.dll) in <appname>.exe: 0xA1A01DB1:
Intel Parallel Debugger Extension Exception 1

may appear. Normally these exceptions are handled by the Intel® Parallel Debugger Extension in the background, but under the environment specified below the exception dialog may pop up whenever an OpenMP application is started for debugging and when it’s terminated.

Environment :
Windows* 7 Enterprise, SP1, 64-bit
Microsoft Visual Studio* 2010 SP1
Any version of the Intel® Composer XE 2011 installed 
Intel® Inspector XE 2011 Update 9 or later

Root Cause:
The exception is caught by the run-time system where the debugger catches the exception before it is passed on and caught.
Normal execution does not see it.

(one of the following):

1) Simply click on 'Continue'
when the Exception dialog appears.


The exception will be passed on to the run-time sytem where it is ignored. 

2) Enable 'User-unhandled' exceptions
by setting the Tools > Options > Debugging > General: Enable Just My code (Managed only)' checkbox.


3) Uninstall the Intel® Parallel Debugger Extension
if you don't want to use the Data Sharing Detection feature for OpenMP* applications. Run the product installer from the Control Panel > Uninstall or change a program: Intel Composer XE 2011 <update_nr> for Windows* > Modify and unselect the Intel® Debugger Extension:


Para obter informações mais completas sobre otimizações do compilador, consulte nosso aviso de otimização.