程序内存泄露,我在网上找到以下方法
_CrtMemState s1,s2,s3;
_CrtMemCheckpoint(&s1);
.
.
.
_CrtMemCheckpoint(&s2);
if(_CrtMemDifference(&s3,&s1,&s2))
_CrtMemDumpStatistics(&s3);
我运行程序得出的结果是
0 bytes in 0 Free Blocks.
44 bytes in 2 Normal Blocks.
0 bytes in 0 CRT Blocks.
0 bytes in 0 Ignore Blocks.
0 bytes in 0 Client Blocks.
Largest number used: 0 bytes.
Total allocations: 1320 bytes.
有人能向我解释下,这输出的结果意思是不是Normal Block有44个自己泄露,还是其它意思,求详解!