Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Debug assertion failure???

Status
Not open for further replies.

LanyA

Programmer
Jan 29, 2003
23
US
Hello again - does anyone understand what a debug assertion failure is? I am running my exe from DOS, and i get this dialog box with this message 20% of the time:

Debug Assertion Failed!

Program: C:\Program Files\MPRCrypto\mprcrypto.exe
File: dbgheap.c
Line: 1017

Expression: _BLOCK_TYPE_IS_VALID(pHead->nBlockUse)

For information on how your program can cause an assertion failure, see the Visual C++ documentation on asserts.

What's this? And how could I prevent this? Anyone?
 
You probably write beyond some allocated block of memory.
Greetings,
Rick
 
When you hit the assert in debug... debug the code. Look at the call stack and follow it back to see where it is coming from.

Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top