Re: Memory leak in the Driver
- From: "Neo" <rksandilya@xxxxxxxxx>
- Date: 17 Jan 2007 08:10:29 -0800
Hi Mr. Helge Kruse,
i cannot use ENTREK TOOLBOX, bcoz it is not free !!!
And creating counters is already i did but in my DRIVER i am
deallocating all the memory which i am allocating using localallocand
localfree.
i donot see any free memory in my driver for USB Device.
i did put a print statement with the localalloc and localfree calls
and the corresponding calls matches.
but still when my device is just opened and closes continuosly for 10
times i loose 28KB of memory or so.
can you be able to shed more light on the ToolhelpAPI, i'll try to work
on that !!!
Thanks and Regards,
Neo
Helge Kruse wrote:
The ENTREK Toolbox with CodeSnitch is very useful to find memory leaks in
application.
If this tools does not meet your needs, you can use ToolhelpAPI functions to
do the work by yourelf. But ... it's work. And you will have to examine the
results of heap blocks. That's much more work.
Another approach is to create counters fore object creation/deletion. So you
can find the class with not deleted objects. This can help with the code
review. But this will be application even for driver.
/Helge
.
- Follow-Ups:
- Re: Memory leak in the Driver
- From: <ctacke/>
- Re: Memory leak in the Driver
- References:
- Reg : Memory leak in the Driver
- From: Neo
- Re: Memory leak in the Driver
- From: Helge Kruse
- Reg : Memory leak in the Driver
- Prev by Date: Re: SD Card MMC clock
- Next by Date: Re: Memory leak in the Driver
- Previous by thread: Re: Memory leak in the Driver
- Next by thread: Re: Memory leak in the Driver
- Index(es):
Relevant Pages
|