Results 1 to 4 of 4

Thread: Qt C++ huge memory leak

  1. #1
    Join Date
    Aug 2012
    Posts
    55
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Qt C++ huge memory leak

    Hi all

    I made application which use a lot of files stored in resource file. I didn't have any problems until I imported button background image, when I try to compile application it freezes my computer and fills all RAM memory and also all swap memory. Only thing I can do is to reboot my computer. Btw I'm using Ubuntu 12.04.
    This is not the first time, it happend before, but only when I'm using resource files.

  2. #2
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt C++ huge memory leak

    So this is nothing to do with programming then? Please look at the forum you are in.

    If the problem is compiling, then you should be checking gcc or something. If it's a resource tool problem, then there is a forum for that...
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

  3. #3
    Join Date
    Aug 2012
    Posts
    55
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Qt C++ huge memory leak

    sorry for that

  4. #4
    Join Date
    Aug 2012
    Posts
    55
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Qt C++ huge memory leak

    For anyone with this problem I will say how I solved this. I just removed resource file and used full paths to all images and sounds I used in my app, that way my application was a lot faster and less memory hungry.

Similar Threads

  1. Replies: 4
    Last Post: 16th April 2011, 10:19
  2. Qt dll + memory leak
    By Fastman in forum Qt Programming
    Replies: 3
    Last Post: 2nd August 2009, 13:28
  3. memory leak
    By mattia in forum Newbie
    Replies: 18
    Last Post: 16th January 2008, 10:22
  4. Memory Leak in Qt
    By Krish_ng in forum Qt Programming
    Replies: 3
    Last Post: 22nd July 2007, 08:02
  5. Memory leak
    By zlatko in forum Qt Programming
    Replies: 8
    Last Post: 28th March 2006, 19:02

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.