Re: Memory leak in the Driver



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: Memory leak in the Driver
    ... You've probably already spent more than a day looking for this leak - what ... And creating counters is already i did but in my DRIVER i am ... i donot see any free memory in my driver for USB Device. ... Another approach is to create counters fore object creation/deletion. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Memory leak in the Driver
    ... or debug output messages or whatever to try to track allocations made by ... And creating counters is already i did but in my DRIVER i am ... i donot see any free memory in my driver for USB Device. ... Another approach is to create counters fore object creation/deletion. ...
    (microsoft.public.windowsce.platbuilder)
  • [PATCH] Integrating SEP Driver with RAR Driver
    ... RAR stands for Restricted Access Region; this is memory ... This is upstream revision 4 of the SEP driver. ... +This functions maps and allocates the shared area on the external ...
    (Linux-Kernel)
  • PROBLEM: Memory leak in -test9?
    ... There seems to be a memory leak in 2.6.0-test9. ... 0cf8-0cff: PCI conf1 ... 16 nodes reported by PnP BIOS; 16 recorded by driver ... ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 ...
    (Linux-Kernel)
  • Re: Problem isolating blue screen of death problem
    ... Parameter 4 is the location of the device driver causing the problem. ... memory to disk or retrieves a page of memory from disk to memory. ... select Task Manager and click the Performance ... Kernel Summary Dump File: Only kernel address space is available ...
    (microsoft.public.windowsxp.help_and_support)