Re: Memory leak in the Driver



Platform Builder wasn't free either, yet you're using it. If your time is
worth anything, then the time saved by using a tool pays for itself quickly.
You've probably already spent more than a day looking for this leak - what
was that day worth?


--
Chris Tacke
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--


"Neo" <rksandilya@xxxxxxxxx> wrote in message
news:1169050226.359701.123650@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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



.



Relevant Pages

  • Re: The performance of Editplus is much better than notepad,Why?
    ... I have a friend who works for company that has massive databases (terabytes, ... Their attitude: disk ... Memory footprint doesn't matter. ... but felt it was worth it.) ...
    (microsoft.public.vc.mfc)
  • Re: Problem with BBC HD I player.
    ... acceleration and even using a faster computer running Vista with two ... gigabytes of memory, ... What I know about graphics cards could probably be written on a postage ... Would be worth checking other users results before your purchase. ...
    (uk.tech.digital-tv)
  • Re: Insteks new 2204 Oscopes
    ... are they worth the $$$? ... - 25KB sample memory, that's fairly decent actually, better than the ... - Not much in the way of waveform storage or processing features. ... The low end digital scope market has ...
    (sci.electronics.basics)
  • Re: variable = null; Memory Cleanup
    ... have to be closed to prevent memory leaks, ... since the collector will know to clean up rs after it is ... BigThing thing = new BigThing; ... The worth of this trick rests on the large ...
    (comp.lang.java.programmer)
  • Re: OT - Those *#?%$^& Drivers With Cellphones
    ... I only disagreed that any one HAD to answer a cell call. ... turn some one into a bad driver either. ... because it's really not worth the effort. ... Clearly any disagreement with your rather lame assertions is a hot ...
    (rec.crafts.metalworking)