Forum Discussion

garrysean's avatar
11 years ago

How to fix Microsoft Visual C++ 6.0 debug assertion failed e

Few days back I made two c++ programs which successfully compiled and produced the output in Microsoft Visual C++ 6.0. Now today both the programs got complied and build fine but do not produce the output and show debug assertion error.

The error shown is:
Debug Assertion Failed!
Program: C:\abc.exe
File: dbgheap.c
Line 1011
Expression: _CrtIsValidHeapPointer(pUserData)

I wonder what suddenly went wrong. The programs were producing the output well, days back. I have reinstalled Microsoft Visual C++ 6.0 but vain. I use windows 7 and recently I haven't updated any program. I downloaded Microsoft Visual C++ 6.0 from internet and I found it doesn't contain .dbg files. However I tried to run the programs in Microsoft Visual Studio 2010 but the error still exists. The issue has baffled me.

Please guide. Also, I'm new to the forum kindly redirect if posting at a wrong place.
Thanks!!!