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???

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.