コンパイルがエラー・警告なしで実行すると、DebugLibraryというのが開かれて実行できません。

内容は
Debug Assertion Failed!

Program: D:\〜\Debug\abc.exe(実行ファイルの保存先)
File: dbgheap.c
Line: 1011

Expression: _CrtIsValidHeapPointer(pUserDate)

For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.

(Press Retry to debug the application)

と出ます。中止、再試行、無視とあるんですが再試行、無視しても実行はされません。
こういうエラーがでる原因は何が考えられるんでしょうか?
解答よろしくお願いします。
ちなみに、dbgheap.c というファイルは検索したんですが見当たりませんでした。