I was working on an assignment, and I had finished everything and was cleaning up the code by just adding some comments to it and everything, and when I tried to run it again afterwards, it came up with an error that said "Debug Assertion Failed!" It says "Expression: _BLOCK_TYPE_IS_VALID(pHead->nBlockUse)" When I debugged it, it broke at a point that had worked countless times before and doesn't seem to be related to anything I had changed. So what is this???

7 Years
Discussion Span
Last Post by squall1986

Well, that was a quick fix, I found that while cleaning up the code, I added a small destructor to the code that was screwing up memory allocation, so that's what was giving me the problem. Sorry for the unnecessary post.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.