Re: Finding Mem Leaks in Windows Mobile
- From: "Yaroslav Goncharov" <yaroslav@xxxxxxxxxxx>
- Date: Tue, 11 Dec 2007 16:28:37 +0300
I would also recommend AppVerifier. It is not ideal and sometimes hard to
configure, but from my experience it is the best available tool. What is
your exact problem with AppVerifier?
Is there a way to get the physical memoryFor heap allocated blocks you can enumerate all heaps for a process using
usage for a process in WinCE/WinMo?
Toolhelp API and calculate the total.
--
Yaroslav Goncharov
Pocket PC Developer Network coordinator, http://pocketpcdn.com
Spb Software House, http://spbsoftwarehouse.com
"Mark J" <mjanke@xxxxxxxxxxxxxx> wrote in message
news:02fdeda7-a30e-4bd1-80a3-642acb5bef77@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
In the past in developing desktop code, I have used _CrtMemCheckpoint
and _CrtMemDifference methods and code checkpoints to find memory
leaks in my code. This was a very simple technique that got results.
Such methods do not appear to be supported in WinCE and WinMo. Online
info on this subject typically suggests using the Application Verifier
that is included with the CE Test Kit (CETK). I have had a very
difficult time getting the verifier to run and then to show me where
my leak is. For this reason, I thought about writing a very simple
class that would support acquiring snapshots of my processes physical
memory usage. I was able to find the GlobalMemoryStatus() method to
get a snapshot of all processes, but I am having trouble finding a
method or technique that will give me the physical memory used by my
process (given its handle). Is there a way to get the physical memory
usage for a process in WinCE/WinMo?
.
- Follow-Ups:
- Re: Finding Mem Leaks in Windows Mobile
- From: Mark J
- Re: Finding Mem Leaks in Windows Mobile
- References:
- Finding Mem Leaks in Windows Mobile
- From: Mark J
- Finding Mem Leaks in Windows Mobile
- Prev by Date: Re: GPRS signal strength on WINCE 4.2
- Next by Date: Re: wlan device driver in wince5.0
- Previous by thread: Finding Mem Leaks in Windows Mobile
- Next by thread: Re: Finding Mem Leaks in Windows Mobile
- Index(es):
Relevant Pages
|