Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Debug Assetion failed

vivek_emailme
Beginner
920 Views
Hi,
i get the following message at the end of a program run.
***
Debug Assertion failed
For more information on how your program can cause an assertion failure, see the visual C++ documentation on asserts
****
i dont have any clue on what to do or where to search for VC++ documentation, which i dont have, can anybody help me in this regard.
Ps: is it related to memory allocation in any way?
thanks in advance
vivek
0 Kudos
3 Replies
Steven_L_Intel1
Employee
920 Views
I have seen this happen in mixed Fortran-C programs that use the Debug C library. It is usually a false alarm due toFortran doing its own memory allocation at times. You can select the non-debug libraries (need to do it separately for Fortran and C) to get rid of the message.
0 Kudos
vivek_emailme
Beginner
920 Views
Hey, thanks for the hint. As you guessed, in my application it was because of the large chunk of memory allocation done in fortran. I compiled all the files from dos-prompt and linked them without the debug information and it worked. I think this shortcome in Compaq fortran must be rectified.
0 Kudos
Steven_L_Intel1
Employee
920 Views
Well, nothing is going to be done in Compaq Visual Fortran - there will be no further updates to that product. I would even go as far as to say it isn't a bug - it's a feature that the C++ library is alerting you to a chunk of memory that did not get deallocated.
You get this only when building with the debug C++ libraries, not in a "Release" configuration.
0 Kudos
Reply