???????????????????????????????????????′?????????dump???????dump????У?

 

_CrtMemState s1?? s2?? s3;//????3??????????
......
_CrtDumpMemoryLeaks();//Dump?????????е?????????????δ??????棬?????An
//???2?????????????????????????????
_CrtMemCheckpoint( &s2 );
if ( _CrtMemDifference( &s3?? &s1?? &s2) )
{
_CrtMemDumpStatistics( &s3 );//dump??????????????仯
//for next compare
_CrtMemCheckpoint( &s1 );
}
time_t now = time(0);
struct tm *nowTime = localtime(&now);
_RPT4(_CRT_WARN??"%02d %02d:%02d:%02d snapshot dump. "??
nowTime->tm_mday?? nowTime->tm_hour??nowTime->tm_min??nowTime->tm_sec);//??????dump???

 

???????????÷??????????????????????????????????snapshot??????????ε????dump??
????dump?????????????£?

 

Detected memory leaks!
Dumping objects ->
{20575884} normal block at 0x05C4C490?? 87 bytes long.
Data: < > 02 00 1D 90 84 9F A6 89 00 00 00 00 00 00 00 00
...
d:xxxxxxxxworker.cpp(903) : {20575705} normal block at 0x05D3EF90?? 256 bytes long.
Data: < > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
...
Object dump complete.
0 bytes in 0 Free Blocks.
215968 bytes in 876 Normal Blocks.
0 bytes in 0 CRT Blocks.
0 bytes in 0 Ignore Blocks.
0 bytes in 0 Client Blocks.
Largest number used: 220044 bytes.
Total allocations: 7838322 bytes.
10 16:29:14 snapshot dump.

????????????????????????з????δ????????λ?á?
????????Dump???
?????????????????dump??????????????????dump??????????????????????????????n??dump????????????An?????n-1?? dump??????????An-1???????????λ?????????й???λ?á?????dump?????????????????????ж????????????????????????? ·????λ???????????С??????д????
????1??????????????????dump???D1??D2????D1??D2????dump
????2?????????dump???????????????????饗???????????λ????????normal block?????飩????????????ID????“d:xxxxxxxxworker.cpp(903) : {20575705}”???????????????б?L1??L2
????3???????б?L2?????????ID?????L1?г?????????飬??Щ???鼴?????й??????
????4??????3????????????????????λ?????????????й???????????????????У??????????????????й??????????