Re: evc4 app memory leak
- From: "<ctacke/>" <ctacke[@]opennetcf[dot]com>
- Date: Thu, 1 Mar 2007 08:17:00 -0500
You've got a leak. If you never malloc or LocalAlloc (or use a heap
allocation), then it could be an object, it could be a handle or some other
object that when you call an API, the OS creates for you. That's about the
only thing we can say with what we know.
Getting Entrek's tools working is probably your best bet for finding the
problem.
--
Chris Tacke - Embedded MVP
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--
"Andrew Kennard" <andrew@xxxxxxxxxxxxxxxxx> wrote in message
news:uiffS9%23WHHA.4188@xxxxxxxxxxxxxxxxxxxxxxx
Hi all
I have a quite large evc4 app that leaks 4096 bytes now an again untill
eventually all of the memory is used up
I do not use any mallocs etc in the code
I do have some objects created via new and deleted with delete and have
checked these and they all appear to have new/delete pairs. I've also now
changed my 'bad code' using C Tacke help via this group. The changing of
this code has improved things but not completly fixed them
The app does have a section that deals with socket communication that uses
sending and recv threads which i'm guessing is where the problem lies but
not 100% sure
I've tried downloading Entrek tools for evaluation. I've installed them on
my XP machine and they can talk to my HP2210 PPC2003 device and I can
browse to the app. But on clicking Go! it all locks up. I've emailed their
support address but as yet no reply.
Is there any chance anyone can give me anymore clues ?
Thanks in advance
Andrew
PS I've also tried crtdbg.h etc that tracks the new/delete commands and
that is not showing any errors.
.
- References:
- evc4 app memory leak
- From: Andrew Kennard
- evc4 app memory leak
- Prev by Date: Re: Managed CameraCaptureDialog class causes an Unknown Exception.
- Next by Date: Re: Sim Contacts from OID
- Previous by thread: evc4 app memory leak
- Next by thread: Re: Managed CameraCaptureDialog class causes an Unknown Exception.
- Index(es):
Relevant Pages
|