Menu

#281 Memory leak in Cpp parser

open
nobody
5
2012-09-26
2004-04-14
No

Hi,
The CPPParser contains lot of memory leaks. I'm using
this component in my opensource project and it seems
when ever I parse a file a chunk of memory is allocated
and not deallocated. I have attached a stacktrace of
the memory leak. I hope this will help in debugging the
issue.

I used Memcheck to find the leaks. You can find the
source at

http://v.mahon.free.fr/pro/freeware/memcheck/

I've been using this memory leak check code for more
than 1 year and all the results are very consistent.

Hope you can use this code and the fix occasional
unknown crash that happens in dev-cpp.

Thanks,
Guru Kathiresan

Discussion

  • Guru Kathiresan

    Guru Kathiresan - 2004-04-14

    Stack trace info of the memory leak

     
  • Charles Brockman

    Logged In: YES
    user_id=250965

    The problem persists in version 4.9.8.9. I see the effects of a
    process running because I have a CpuIdle display on my
    Windows Taskbar. Normally my machine runs with about 15%
    idle. (The number is low because I also run a United Devices
    background task.) All is well until I try to compile a program.
    From that point on, my idle drops to about 4%. It stays
    there when the compilation is finished and even if I exit Dev-
    C++. In order to return to normal, I have to reboot the
    computer. Something is leaking or there is a process not
    terminating but, unfortunately, in my Windows 98 operating
    system I can't tell what it is. Perhaps this is related to bug
    778404.

     
  • Marek Januszewski

    Logged In: YES
    user_id=609236

    is there a chance that you could regenerate the report with
    4.9.8.10? I think there are a lot of memory leaks still
    there. I spotted a lot of them in editor.pas (CodeToolTip
    and AutoIndent not being destroyed with Teditor etc).

     
  • Marek Januszewski

    Logged In: YES
    user_id=609236

    what do all those "Find error:" mean?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.