Results 1 to 4 of 4

Thread: My program wont run because it runs out of memory

  1. #1
    Join Date
    Jul 2012
    Posts
    201
    Thanks
    26
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default My program wont run because it runs out of memory

    hi there guys. my program sudden doesn't run because of this errorerror_2.jpg. I don't know if I am running out of memory because I have a resourse file with 24MB worth of png image or is it maybe bacause I am loading all those images into a custom model to display them in a QListView. any advise would greatly be appreciated.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: My program wont run because it runs out of memory

    Well, it looks like the program running out of memory is the C++ compiler, not your program.

    Check the compile output to see which file it is processing when that happens.

    Cheers,
    _

  3. #3
    Join Date
    Jul 2012
    Posts
    201
    Thanks
    26
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: My program wont run because it runs out of memory

    It seems this happens when the compiler processes the resource file but there is nothing to explain what exactly is the problem. please see compile output hereerror_4.jpg

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: My program wont run because it runs out of memory

    Maybe try splitting the resource file into several smaller ones.

    For whatever reason it tries to allocated over a gigabyte of memory when processing the current file.

    Cheers,
    _

Similar Threads

  1. Program runs even if there is no code
    By Emit in forum Newbie
    Replies: 8
    Last Post: 4th November 2014, 20:36
  2. This program runs, but does not work properly
    By rezas1000 in forum Qt Programming
    Replies: 3
    Last Post: 15th September 2014, 01:46
  3. Program runs from Creator, but not as a standalone?
    By N3wb in forum Qt Programming
    Replies: 12
    Last Post: 8th October 2012, 23:11
  4. Program wont start - Wont even enter main()
    By ComServant in forum General Programming
    Replies: 5
    Last Post: 8th January 2011, 03:44
  5. shared memory wont attach
    By daemonna in forum Qt Programming
    Replies: 2
    Last Post: 25th August 2010, 01:11

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.