是个 MFC 工程,截取了一部分输出,在我添加某个函数之前之后 内存块 207 都会报 Object dump complete.但添加了某个函数之后会程序退出并返回 3.网上的说法报 Object dump complete 表示出现了内存泄漏,那么程序退出返回 3 是什么原因呢?因为添加某个函数之前也会报 Object dump complete 但是程序运行正常并没有退出。
{237} normal block at 0x01940090, 8 bytes long.
Data: < > 1C C1 C6 00 00 00 00 00
{236} normal block at 0x01940048, 8 bytes long.
Data: < > 08 C1 C6 00 00 00 00 00
{235} normal block at 0x0193D5F0, 8 bytes long.
Data: < > F4 C0 C6 00 00 00 00 00
{234} normal block at 0x0193D5A8, 8 bytes long.
Data: < > E0 C0 C6 00 00 00 00 00
{233} normal block at 0x01935F58, 8 bytes long.
Data: < > CC C0 C6 00 00 00 00 00
{232} normal block at 0x01935F10, 8 bytes long.
Data: < > B8 C0 C6 00 00 00 00 00
{209} normal block at 0x01935820, 8 bytes long.
Data: < > 08 BA C6 00 00 00 00 00
{208} normal block at 0x019357D8, 8 bytes long.
Data: < > F4 B9 C6 00 00 00 00 00
{207} normal block at 0x063E0040, 1048576 bytes long.
Data: < > CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD
Object dump complete.
程序“[7088] XXXXXXXX.exe ”已退出,返回值为 3 (0x3)。