首先说工具vs2008 + pb5.0自带的Appverifier+ CE开发板一个
所有过程均按MSDN官方资料上介绍操作:
还有eeworld里的高人写的:
http://blog.eeworld.net/carlward/archive/2009/06/16/4274000.aspx
还有这老外的视频:
Using AppVerifier to debug Windows Mobile Applications
问题如下:
//略
Heap statistics for heap 0x1e030000:
Initial size: 0, Maximum size: 0
Current bytes: 10, Max: 10
Current count: 1, Max: 1
Checking for leaks in heap 0x1e030000...
----------------------------------------
TrackedItem count: 1
Callstack:
Couldn't resolve address 0x1fd399f8 (4287139)
0x1fd399f8: UNKNOWN!UNKNOWN + 01d399f8h
Couldn't resolve address 0x1fd3ab80 (4287139)
0x1fd3ab80: UNKNOWN!UNKNOWN + 01d3ab80h
Couldn't resolve address 0x1fd3ac90 (4287139)
0x1fd3ac90: UNKNOWN!UNKNOWN + 01d3ac90h
//略
如你所见上面有很多UNKNOWN...可能是分析map文件时出什么问题了吧,
看到MSDN和几个外国网站上的朋友也遇到过此问题,都没有什么结果,请高手支招:
http://www.mombu.com/microsoft/pocket-pc-developer/t-how-to-know-that-application-verifier-has-detected-true-memory-leaks-3251527.html
http://social.msdn.microsoft.com/Forums/zh-CN/vstsappverifier/thread/96c58851-65e7-4866-a663-bd398cd92ba8