有用过purify的没有,请教
我用vc6创建MFC exe程序,过程如下:1.New Project -> Project Name is : T5
2.Application Type is Single document
3.Default
4.Default
5.Default
6.Default
7.CT5View Base class choose:CFormView
8.Finish
10.Run purify -> Run
11. Choose Debug\T5.exe and run
12. exit T5
The purify result:
[I] Starting Purify'd D:\visualstudio\T5\Debug\T5.exe at 2010-07-09 11:24:57
[I] Starting main
[W] PAR: Both Debug and non-Debug versions of CRT are active; This may cause CRT heap operations to fail. {1 occurrence}
[I] Summary of all memory leaks... {2504 bytes, 7 blocks}
[W] MLK: Memory leak of 2452 bytes from 6 blocks allocated in SetCaretPos [USER32.dll]
[W] MLK: Memory leak of 52 bytes from 1 block allocated in SetCaretPos [USER32.dll]
[I] Exiting with code 0 (0x00000000)
[I] Program terminated at 2010-07-09 11:25:01
为什么会有内存泄露?