debugging assertion error


"debug assertion failed _block_type_is_valid"

How do I fix these type of errors and what is usually the root cause of them?
So far I know how to use a debugger, and I know that issue it related to memory leaks but at this point in time, I still don't have the right/best methodology for solving it.

how do I fix the "debug assertion failed errors"? (I can't really post the project here because it a bit too big since I working in Direct X)
It is caused by memory errors leading to trashing of memory management bookkeeping data.
Typical causes are writing beyond array bounds or double deleting an object.

Use the debugger to see the callstack of when the assertion failure was triggered. If you're lucky, it points you right to a broken piece of code.
Topic archived. No new replies allowed.