Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor junaid888's Avatar
    Join Date
    Mar 2010
    Posts
    70
    Hi

    I am using the Window Mobile 6 that have 128 Ram & enough memory space.I send the data to the server through http connection in the for of byte array the length of byte array is 200012 (i will send the byte array in the chunks)After receiving the byte array i convert the byte array to String object it will prompt the error out of memory or sometime just stop the execution with no error.

    so is there is any way to overcome this problem

    Thanks Regards
    Junaid
    Last edited by junaid888; 2010-07-20 at 10:58.

  2. #2
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,673
    I believe Nokia is not manufacturing any Windows mobile's, so maybe you could try locating a discussion board dedicated for the platform.

  3. #3
    Regular Contributor junaid888's Avatar
    Join Date
    Mar 2010
    Posts
    70
    I also try it for my Nokia Device (N95) but it will give me the same error.

  4. #4
    Registered User ektasrv's Avatar
    Join Date
    Oct 2009
    Location
    Noida
    Posts
    941
    Quote Originally Posted by junaid888 View Post
    Hi

    I am using the Window Mobile 6 that have 128 Ram & enough memory space.I send the data to the server through http connection in the for of byte array the length of byte array is 200012 (i will send the byte array in the chunks)After receiving the byte array i convert the byte array to String object it will prompt the error out of memory or sometime just stop the execution with no error.

    so is there is any way to overcome this problem

    Thanks Regards
    Junaid
    Even on device like N95, a single String object created out of 200012 bytes may give you out of memory because of overrun on Heap memory on the device.
    Workaround - Write the bytes as they come in a text file using Fileconnection API (JSR 75 - FC API) in chunks opening the FileConnection along with Network connection and when needed read this data from file system - parse and use.
    Thanks,
    Ekta

  5. #5
    Regular Contributor junaid888's Avatar
    Join Date
    Mar 2010
    Posts
    70
    i also do this but when i load the data from the file & convert it to string the program just hang & prompt the outofmemory exception.


    Thanks
    Junaid

  6. #6
    Registered User ektasrv's Avatar
    Join Date
    Oct 2009
    Location
    Noida
    Posts
    941
    Don't try to read the entire data at a time and create a string of it -- let us know hat you want to get out of it... then we can suggest some work around.
    Thanks,
    Ekta

Similar Threads

  1. handling large form title
    By galaxy_j2me in forum Mobile Java General
    Replies: 3
    Last Post: 2010-01-15, 09:57
  2. Large object handling
    By pshukla in forum OMA DM/DS/CP
    Replies: 4
    Last Post: 2008-06-30, 10:42
  3. Send large data to server without split data packet
    By abdun in forum Mobile Java General
    Replies: 0
    Last Post: 2007-08-25, 19:17
  4. Replies: 1
    Last Post: 2007-04-15, 15:36
  5. handling large tileset areas
    By ysuter in forum Mobile Java Media (Graphics & Sounds)
    Replies: 5
    Last Post: 2003-10-21, 11:16

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