×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Nov 2011
    Posts
    5

    [moved] RecordStore / RMS - how to conserve space?

    I have created a simple recordstore, to which user data is added and removed.

    The problem I have (on a Nokia Series 40 5th Edition device) is that when I create the recordstore and add, say, 400KB of data, even after I remove that data (by setting the contents of the record(s) to null), rs.getSizeAvailable() is still reporting that 400KB of data is being used which is resulting in a RecordStoreFullException.

    I've created a test screen which shows the contents of the recordstore and confirm that even when there's virtually nothing in the recordstore, rs.getSize() is reporting 400KB again...

    Other than delete/recreating the recordstore, is there a trick I can use to stop all this space being wasted?

    Thanks,
    James

  2. #2
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: [moved] RecordStore / RMS - how to conserve space?

    Hello James,

    could you provide more information on how you perform the clearing of a recordstore? You defined about removing data by setting the record content to null, have you tried using deleteRecord(int recordId) for individual records?

    Regards,
    r2j7
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

Similar Threads

  1. Space character in URL:
    By kpvrlakshmi in forum Mobile Java Networking & Messaging & Security
    Replies: 3
    Last Post: 2011-02-22, 06:23
  2. Cannot Delete RecordStore although RecordStore is closed already
    By playplay1978 in forum Mobile Java General
    Replies: 6
    Last Post: 2010-04-29, 04:03
  3. RecordStore sometimes fails create new RecordStore
    By thechameleon in forum Mobile Java General
    Replies: 1
    Last Post: 2009-09-09, 12:48
  4. [moved] E71 seems not to store using J2me RECORDSTORE
    By himberjack in forum Mobile Java General
    Replies: 0
    Last Post: 2009-03-20, 08:46
  5. Memory space occupied by RMS recordstore ...
    By chris3388 in forum Mobile Java General
    Replies: 1
    Last Post: 2004-02-08, 11:43

Posting Permissions

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