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.


Resolution
(one of the following):

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

ScreenHunter_06+Aug.+06+16.05.jpg

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.

ScreenHunter_07+Aug.+06+16.12.jpg


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:

ScreenHunter_08+Aug.+06+16.21.jpg

Para obtener información más completa sobre las optimizaciones del compilador, consulte nuestro Aviso de optimización.