Mobile Apps - Memory Leak in WM application ??
Asked By RahulPShukl
09-Jun-08 08:44 AM
Hello Experts,
In my application (WinCE\WM\Pocket PC based) I am getting a severe memory
leak. I am nowhere allocating memory dynamically (no use of new/delete or
malloc/free). Application is in DLL form. So when ever I am invoking that DLL
and running the application, it leaves some memory behind. And if I run the
application in loops, it keeps consuming memory.
There are some points I would like to clear:
1. I have heard in one blog that use of CString variable can cause of memory
leak, though used as a local variable. Is it true??
2. If a CString variable is globally defined as static, so after coming out
from DLL, will the memory allocated to it destroyed?? Or I need to handle it
explicitly, how??
3. What are the tools which I can use to detect memory leak?
WinCE
(1)
Shukla
(1)
Entrek
(1)
A6CA03898649
(1)
Malloc
(1)
RahulPShukl replied...
I tried to detect the leak via Application verifier, but not able to
understand the log generated by that.
any other tool, which can reach me to the buggy code ???
- Rahul
Paul G. Tobey [eMVP] replied...
3. Entrek TOOLBOX should be able to do it. It's a high-level tool that will
show you a log of unfreed allocations and allow you to click on one, opening
the corresponding source code. At a guess, though, you should look for
*handles* that you've allocated and not freed. I almost never have a
problem with actual dynamic memory allocation because I know that I have to
be careful about freeing them. Handles, however, don't invoke that same
care. You might also check any API calls that return you an array of
information, as you're almost certainly responsible for freeing that.
Paul T.
WINCE - x86) SATA for WINCE 5.0 and 6.0 ? Mobile Apps Dear Sir, I have some question for SATA on WINCE platform. 1. Does standard CEPC BSP of WINCE 5.0 and WINCE 6.0 CE support SATA HDD ? 2. if NOT support , How could I do to enable SATA HDD in WINCE 5.0 and WINCE 6.0 ? 3. In the WINCE 6.0 catalog , the storage have SATA item. Where is the standard SATA driver ? Could
Can WinCE 5.0 and WinCE 6.0 PB Installation co-exist in a machine Mobile Apps Can WinCE 5.0 and WinCE 6.0 Installation co-exist in a machine. I have not read the installation / readme document of the WinCE 6.0. If anybody is tried this or aware, please let me know. Thanks, WindowsCE Platform Builder Discussions WinCE (1) ShivaP (1) Marco.contenti (1) Scritto (1) Readme (1) MSWEP (1) Dcook (1) See s. (MSWEP) www.projectsas.it marco.contenti@<see domain above> ShivaP ha scritto: keywords: Can, WinCE, 5.0, and, WinCE, 6.0, PB, Installation, co-exist, in, a, machine description: Can WinCE 5.0 and
Can WinCE support WMI(WinCE 5.0 or WinCE 6.0)? Mobile Apps WindowsCE Embedded Discussions WinCE (1) GraemeW (1) Mikes (1) Mikehall (1) I do not think so from Mikes blog Web - http: / / www.bytesnap.co.uk Blog - http: / / ce4all.blogspot.com Thank you! keywords: Can, WinCE, support, WMI(WinCE, 5.0, or, WinCE, 6.0)?
how to import wince 5.0 bootloader to wince 6.0 Mobile Apps i want import wince 5.0 bootloader to wince 6.0. My wince 5.0 bootloader inlucde the eboot and ipl folder. i can compile eboot OK, but when compile ipl folder.this message is " canot find the "iplcommon.h" file. i check wince 5.0 and 6.0, find wince 6.0 have not this file. So how do i do import ipl into wince 6.0? or if i can remove ipl from bootloader and use others? thanks very