| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| I am trying to set up the App Verifier to detect memory leaks. Thanks to the extremely helpful video tutorial at http://download.microsoft.com/downlo...dowsMobile.wmv, I think I'm 90% of the way there. All the tools appear to be working, and I can see the log output when the application exits. The big remaining problem is that the symbols from my application are not displaying in the log. I have enabled map file generation, and verified that it is getting deployed into the /windows directory. The output lines look like this: HLeak : EVENT Handle = 0xb681d0aa 'My leaked event.' HLeak : PC=0x29a55970 shim_hleak.dll!My_TrackerInsertItem2 + cch HLeak : PC=0x29a55880 shim_hleak.dll!My_TrackerInsertItem + 24h HLeak : PC=0x29a55d5c shim_hleak.dll!APIHook_CreateEventW + 68h HLeak : PC=0x280263a8 !(null) + 263a8h HLeak : PC=0x28026d10 !(null) + 26d10h HLeak : PC=0x03f65238 coredll.dll!(null) + 17238h HLeak : PC=0x0a021f20 gwes.exe!(null) + 21f20h HLeak : PC=0x0a0230bc gwes.exe!(null) + 230bch HLeak : PC=0x0a01e7ac gwes.exe!(null) + 1e7ach HLeak : PC=0x0a01eb08 gwes.exe!(null) + 1eb08h HLeak : PC=0x03f63a90 coredll.dll!(null) + 15a90h HLeak : PC=0x03f64010 coredll.dll!(null) + 16010h HLeak : PC=0x038bac18 aygshell.dll!(null) + 2dc18h HLeak : PC=0x038a6a34 aygshell.dll!(null) + 19a34h HLeak : PC=0x03f65238 coredll.dll!(null) + 17238h HLeak : PC=0x0a021f20 gwes.exe!(null) + 21f20h HLeak : PC=0x0a0230bc gwes.exe!(null) + 230bch HLeak : PC=0x0a01e7ac gwes.exe!(null) + 1e7ach HLeak : PC=0x0a01eb08 gwes.exe!(null) + 1eb08h HLeak : PC=0x03f63a90 coredll.dll!(null) + 15a90h HLeak : PC=0x03f64010 coredll.dll!(null) + 16010h HLeak : PC=0x038a7f4c aygshell.dll!(null) + 1af4ch HLeak : PC=0x038a88c0 aygshell.dll!(null) + 1b8c0h HLeak : PC=0x038cb7e4 aygshell.dll!(null) + 3e7e4h HLeak : PC=0x03f65238 coredll.dll!(null) + 17238h HLeak : PC=0x0a021f20 gwes.exe!(null) + 21f20h HLeak : PC=0x0a0230bc gwes.exe!(null) + 230bch HLeak : PC=0x0a01e7ac gwes.exe!(null) + 1e7ach HLeak : PC=0x0a01eb08 gwes.exe!(null) + 1eb08h HLeak : PC=0x03f63a90 coredll.dll!(null) + 15a90h HLeak : PC=0x03f64010 coredll.dll!(null) + 16010h HLeak : PC=0x038bad84 aygshell.dll!(null) + 2dd84h HLeak : PC=0x038a6a34 aygshell.dll!(null) + 19a34h HLeak : PC=0x03f65238 coredll.dll!(null) + 17238h HLeak : PC=0x0a021f20 gwes.exe!(null) + 21f20h HLeak : PC=0x0a0230bc gwes.exe!(null) + 230bch HLeak : PC=0x0a01b868 gwes.exe!(null) + 1b868h HLeak : PC=0x03f640dc coredll.dll!(null) + 160dch HLeak : PC=0x28026744 !(null) + 26744h HLeak : PC=0x280273b8 !(null) + 273b8h HLeak : PC=0x03f6b25c coredll.dll!(null) + 1d25ch Cleaning up handle tracker... DLL_PROCESS_DETACH: Shim_heap checking for abandoned heaps/allocations... Heap statistics for heap 0x28050000: Initial size: 0, Maximum size: 0 Current bytes: 22485, Max: 30635 Current count: 141, Max: 210 Checking for leaks in heap 0x28050000... Instead of "!(null) + 263a8h", I'd expect to see something like "test.exe!(LeakHandle)". I'm not sure if this is related, but an earlier callstack includes this fragment: 0x03f60a0c: coredll.dll!(null) + 12a0ch Unable to open '\windows\.map' (GLE: 2) 0x2802692c: !(null) + 2692ch 0x280266bc: !(null) + 266bch 0x280273b8: !(null) + 273b8h 0x03f6b25c: coredll.dll!(null) + 1d25ch Leaked items: 0x9772ec48 (shellres.dll) It looks like it can't find the application name? Other than the fact that I'm building an .exe instead of a .dll, I'm exactly following the steps given in the tutorial - same tools and everything. Are there any steps I should take to view the correct symbol information for my application? Thanks in advance! - Chris |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.