Debug assertion failed: dbgdel.cpp line 52 _BLOCK_TYPE_IS_VALID(pHead->nBlockUse)
Posted on 2006-04-06
In a mixed C++ DLL that uses MFC (called from VB.NET) I have the narrowed down the problem to two lines of code:
SimpleClass * sim = new SimpleClass;
when stepping (or running) through the delete, it generates "Debug assertion failed: dbgdel.cpp line 52 _BLOCK_TYPE_IS_VALID(pHead->nBlockUse)"
I have also narrowed down SimpleClass to an empty class:
All my cpp files and the project are using the "Multi-threaded Debug DLL (/MDd)" runtime library.
I must be missing something simple...