×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Mar 2010
    Posts
    70

    Help regarding Handling the Large data in Windows Mobile

    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 Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,168

    Re: Help regarding Handling the Large data in Windows Mobile

    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
    Join Date
    Mar 2010
    Posts
    70

    Re: Help regarding Handling the Large data in Windows Mobile

    I also try it for my Nokia Device (N95) but it will give me the same error.

  4. #4
    Registered User
    Join Date
    Oct 2009
    Location
    Noida
    Posts
    941

    Re: Help regarding Handling the Large data in Windows Mobile

    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
    Join Date
    Mar 2010
    Posts
    70

    Re: Help regarding Handling the Large data in Windows Mobile

    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
    Join Date
    Oct 2009
    Location
    Noida
    Posts
    941

    Re: Help regarding Handling the Large data in Windows Mobile

    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
  •  
×