Quantcast
Channel: Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1616

How to let the program output runtime error information in C++ code?

$
0
0

Dear all,

I have the C++ dynamic linked library built by VS2012+Intel C++ 14.0, the dynamic linked library is called by Fortran main program.

Currently there are some problems in the C++ code and I need to locate it. However, the bug can't be reproduced in Debug mode but in Release mode, I can't get to know where the crash happened. I have set /Zi option in 'C/C++' and /DEBUG option in 'Linker', but the output message is as follows:

forrtl: severe (157): Program Exception - access violation

Image              PC                Routine            Line        Source

CSGlib.dll         000007FEEF57DF1E  Unknown               Unknown  Unknown

CSGlib.dll         000007FEEF57DB5F  Unknown               Unknown  Unknown

CSGlib.dll         000007FEEF57D78D  Unknown               Unknown  Unknown

fem.exe            000000013FD6F26E  ELEMENT_mp_LOCALM       20494  datatype.f90

fem.exe            000000013FDE82ED  ELEMENT_mp_TESTME       20389  datatype.f90

fem.exe            000000013FF1DFEF  LOGGING3D..0             4600  main.f90

fem.exe            000000013FEFE700  MAIN_PARALLEL             240  main.f90

fem.exe            000000013FE8C02D  MAIN__                     39  main.f90

fem.exe            00000001429799B6  Unknown               Unknown  Unknown

fem.exe            0000000140950D88  Unknown               Unknown  Unknown

kernel32.dll       000000007775652D  Unknown               Unknown  Unknown

ntdll.dll          000000007798C541  Unknown               Unknown  Unknown

 

where fem.exe is the Fortran main program and CSGlib.dll is the C++ dynamic linked library. I can get to know the crash location of Fortran code but can't get to know the location of C++ code.

What do I miss in project settings?

 

Thanks,

Zhanghong Tang


Viewing all articles
Browse latest Browse all 1616

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>