- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page