I have a problem with a DLL in debug mode. When the application that use the DLL starts (in debug mode), it crashes showing the message Debug Assertion Failed. Program .... Expression: _CtrlIsValidHeapPointer(pUserData).
In release mode the application works correctly (the DLL is in release mode too).
The error is caused by an ASSERT sentence (only available in debug mode).
I would like to know what is the reason of this error, and how I could resolve it.