Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User lucarocchi's Avatar
    Join Date
    May 2009
    Location
    Rome
    Posts
    253
    im trying to compile an app that includes 13 Mb of resource file but i get
    out of memory allocating 134221823 bytes cc1plus.exe (134 mb?)
    Then , after removing some Kb of files, compiler outputs out of memory allocating 65536 bytes cc1plus.exe
    Any hint about ? also anyone know what is the maximum size of resource i can embed in the app?
    Last edited by lucarocchi; 2010-09-20 at 16:27.

  2. #2
    Nokia Developer Champion danhicksbyron's Avatar
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

  3. #3
    Registered User lucarocchi's Avatar
    Join Date
    May 2009
    Location
    Rome
    Posts
    253
    dan,
    at first i realized that putting all the files in a single qrc produced a huge .cpp , about a 64K ,and that caused cc1plus.exe can't allocate enough to run its job
    I splitted the qrc and pass to the next ...
    Then the linker gave me error about segment overlaps just the kind of errors that can stuck me for hours /days ...
    while i spent 5 minutes to solve it only because you point me there ...
    Thanks

  4. #4
    Nokia Developer Champion danhicksbyron's Avatar
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209
    Unfortunately, Qt doesn't have a good way to handle large groups of file resources. It's very inefficient, in terms of executable storage and application load speed, to use a resource file to contain, say, a bunch of HTML pages, but the only other option is to load the individual HTML files into the file system. You can't, eg, use a single zip/jar file to contain all of the HTML files (which would save a lot of storage due to compression) since WebKit doesn't understand zip files.

  5. #5
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    Quote Originally Posted by danhicksbyron View Post
    You can't, eg, use a single zip/jar file to contain all of the HTML files (which would save a lot of storage due to compression) since WebKit doesn't understand zip files.
    It should. For example, if you check http://www.google.com it has in HTTP header: Content-Encoding: gzip

  6. #6
    Registered User lucarocchi's Avatar
    Join Date
    May 2009
    Location
    Rome
    Posts
    253
    btw , it was a set of sound waves (about 7mb) , webkit wasn't there

    more in general , i am aware that i was forcing it a little by pushing all that resources ... at the same time, as i 'm still moving first steps on QT/Symbian , i want to verify with my eyes how such an app runs on the real device .. .
    it is 8mb sis , that ,yes,it takes its time to install but run without any problem

  7. #7
    Nokia Developer Champion danhicksbyron's Avatar
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209
    Quote Originally Posted by divanov View Post
    It should. For example, if you check http://www.google.com it has in HTTP header: Content-Encoding: gzip
    How would you identify a single page out of a zip in WebKit?

  8. #8
    Nokia Developer Champion danhicksbyron's Avatar
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209
    Yeah, we have an 8mb sis -- will get it shipped one of these days if our customer ever gets around to getting their publisher ID.

Similar Threads

  1. Problem by allocating big memory on heap
    By paipeng in forum Symbian C++
    Replies: 2
    Last Post: 2010-02-18, 09:27
  2. PANIC USER 42 when allocating and releasing memory
    By Afshin_Pir in forum Symbian C++
    Replies: 2
    Last Post: 2009-06-01, 11:15
  3. Allocating memory space in device drivers
    By dinkyverma249 in forum Symbian C++
    Replies: 0
    Last Post: 2009-03-12, 17:11
  4. allocating/deallocating memory across threads
    By jzxu in forum Symbian C++
    Replies: 1
    Last Post: 2006-11-27, 15:44
  5. allocating, deallocating memory across heaps
    By jzxu in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2006-11-26, 09:02

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved