×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Nov 2006
    Posts
    34

    Memory diagnosis on emulator, my app is using a lot! Why?

    Im using the memory diagnosis tool on the emulator. When I start my app it goes from about 1/5 usage to 4/5. I take it this is a bad thing! Is this anything to with with the fact that I have changed to heap size in the mmp file?

    Any suggests?

  2. #2
    Super Contributor
    Join Date
    Nov 2005
    Location
    London
    Posts
    584

    Re: Memory diagnosis on emulator, my app is using a lot! Why?

    What did you change the heap size to? And if you did make it significantly larger than the default, why did you need to to this?

  3. #3
    Registered User
    Join Date
    Nov 2006
    Posts
    34

    Re: Memory diagnosis on emulator, my app is using a lot! Why?

    Hi, thanks for your reply.

    I changed it to 5 MB. Because I want to handle files (in heap buffer form) of around 3 or 4 MB. Do I need to change the heap size in this case?

  4. #4
    Super Contributor
    Join Date
    Nov 2005
    Location
    London
    Posts
    584

    Re: Memory diagnosis on emulator, my app is using a lot! Why?

    If you want to read in 4MB from a file, you do most definitely need to do it in a heap buffer. I guess the question is, do you need to read the entire file in at once, or can you process it in sections? And, if you do need to read the entire file, does it need to be that big, or can you work with a smaller format (lower resolution graphic for example)?

    It depends what devices you're targetting for your application, but some have fairly limited amount of memory. For example, N71 has 10MB (http://www.forum.nokia.com/devices/N71). So, if your app consumes 5MB, you run the risk of not being able to run it if a couple of other applications are already consuming memory. If you can cut back on what you need, it would be advisable to do so.

  5. #5
    Registered User
    Join Date
    Nov 2006
    Posts
    34

    Re: Memory diagnosis on emulator, my app is using a lot! Why?

    I have written a HTTP app for upload files, I just wanted to be able to send bigger files, perhaps music files. In reality Im not tho because it takes a while. Would just be nice tho.

  6. #6
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: Memory diagnosis on emulator, my app is using a lot! Why?

    Big files can be read and sent (or received and writen) in small chunks, e.g. 4K at a time. Even if you need e.g. a 4MB buffer there is no need to alocate that memory for the entire life time of your app.

Similar Threads

  1. Bluetooth SPP - buffers & memory question
    By asmatic in forum Bluetooth Technology
    Replies: 3
    Last Post: 2006-12-06, 21:57
  2. Replies: 0
    Last Post: 2003-03-19, 12:31
  3. severe memory leak when using CSendAppUi ( Nokia 7650 )
    By ejurinsky in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2002-12-05, 10:13
  4. can not successfully link any sample using .NET
    By lobotomat in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2002-08-20, 00:29
  5. 9210 and 9210i java memory
    By allams in forum Mobile Java General
    Replies: 0
    Last Post: 1970-01-01, 02:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×