Results 1 to 5 of 5

Thread: Memory leak

  1. #1
    Join Date
    Jun 2006
    Location
    India
    Posts
    14
    Thanks
    2
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Memory leak

    hi

    I have a C++ project (application).

    But unfortunately there are memory leaks in it(I am told so). How do i identify them?
    is there any open source tool that does.

    i have found one such tool http://www.codeproject.com/tools/leakfinder.asp.

    After following the instructions given there, i tried to "make" my project , it says

    error LNK2001: unresolved external symbol _DeInitAllocCheck
    error LNK2001: unresolved external symbol _InitAllocCheck


    pl do let me know if i have done any mistakes

    pl kindly help me out in this problem

    Thanks in advance

    Regards
    vvbkumar

  2. #2
    Join Date
    Jan 2006
    Location
    Alingsås, Sweden
    Posts
    437
    Thanks
    3
    Thanked 39 Times in 39 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Memory leak

    You can always use valgrind to find leaks and such.

  3. #3
    Join Date
    Jun 2006
    Location
    India
    Posts
    14
    Thanks
    2
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: Memory leak

    but can i use valgrind for win XP???

    i think is not compatible with windows

  4. #4
    Join Date
    Jan 2006
    Posts
    75
    Thanks
    3
    Thanked 5 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Memory leak

    But seem Valgrind is having many false alarms when used with Qt codes. Is that true?

  5. #5
    Join Date
    Feb 2006
    Posts
    7
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Memory leak

    Quote Originally Posted by ball
    But seem Valgrind is having many false alarms when used with Qt codes. Is that true?
    I have never seen a false alarm by valgrind. However valgrind often alarms about constructs that are intended. For example it is not necessary to free memory, when you know that the programm is going to exit right now.

Similar Threads

  1. simple pointer question
    By mickey in forum General Programming
    Replies: 6
    Last Post: 16th June 2006, 09:19
  2. Memory leak
    By zlatko in forum Qt Programming
    Replies: 8
    Last Post: 28th March 2006, 19:02
  3. vector memory allocation
    By TheKedge in forum General Programming
    Replies: 1
    Last Post: 23rd March 2006, 17:27
  4. why there are memory leaks in Qt?
    By cocalele in forum Qt Programming
    Replies: 1
    Last Post: 19th March 2006, 09:55
  5. Qt 4.1 Memory Leak
    By blackliteon in forum Qt Programming
    Replies: 14
    Last Post: 10th February 2006, 12:47

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.