How to free persistent data memory?

Hi,
Recently I have been working on card applet developing.In my applet I want to use EEPROM to hold a large file, so I apply byte array[] in class constructor.
In Write method I write data to the byte array[]; In Delete method I want to make the byte array[] null,so I used "byte array[] = null".
When I test it in emluator it works well, the data I wrote in the byte array can be removed. But when I test it in the real card, if I want to delete the file (equals with making the byte array null) I always got the error.
So I want to know how to free persistent data memory, dos "= null"work?
Thanks

Java Cards are not required to support automatic garbage collection, although some do.
On Java Card there is a feature called object deletion which can be implemented as garbage collection but can also be implemented differently. Please read the related section in the Java Card Runtime Environment Specification.
With
javacard.framework.JCSystem.isObjectDeletionSupported()
you can check if object deletion is supported on your card.
With
javacard.framework.JCSystem.requestObjectDeletion()
you can request it for the next call of the process method.
And don't forget to clear all your references to the object which is to be deleted.

Similar Messages

  • I've deleted all my emails and texts to make room for the 7.1 upgrade but my usage still says I'm using 641MB for mail and 364 MB for messages. Anyone know how to free up this memory? Thank you.

    I've deleted all my emails and texts to make room for the 7.1 upgrade but my usage still says I'm using 641MB for mail and 364 MB for messages. Anyone know how to free up this memory? I have a 16 GB model. Thank you.

    How much space is used by your Other? You may be able to reduce.
    How Do I Get Rid Of The “Other” Data Stored On My iPad Or iPhone?
    http://tinyurl.com/85w6xwn
    How to Remove “Other” Data from iPhone, iPad and iPod Touch
    http://www.igeeksblog.com/how-to-remove-other-data-from-iphone/
    With an iOS device, the “Other” space in iTunes is used to store things like documents, settings, caches, and a few other important items. If you sync lots of documents to apps like GoodReader, DropCopy, or anything else that reads external files, your storage use can skyrocket. With iOS 5/6/7, you can see exactly which applications are taking up the most space. Just head to Settings > General > Usage, and tap the button labeled Show All Apps. The storage section will show you the app and how much storage space it is taking up. Tap on the app name to get a description of the additional storage space being used by the app’s documents and data. You can remove the storage-hogging application and all of its data directly from this screen, or manually remove the data by opening the app. Some applications, especially those designed by Apple, will allow you to remove stored data by swiping from left to right on the item to reveal a Delete button.
    What is “Other” and What Can I Do About It?
    https://discussions.apple.com/docs/DOC-5142
    iPhone or iPad Ran Out of Storage Space? Here’s How to Make Space Available Quickly
    http://osxdaily.com/2012/06/02/iphone-ipad-ran-out-of-available-storage-space-ho w-to-fix-quick/
    6 Tips to Free Up Tons of Storage Space on iPad, iPhone, and iPod Touch
    http://osxdaily.com/2012/04/24/6-tips-free-up-storage-space-ipad-iphone-ipod-tou ch/
    Also,
    How to Clear Message/iMessage Cache on iPhone & iPad And Reclaim Lots of Free Space
    http://www.igeeksblog.com/how-to-clear-message-imessage-cache-on-iphone-ipad/
     Cheers, Tom

  • How to store persistent data for portletpreference

    i use PortletPreference to store user's personalized data, it works fine. but after i restart the weblogic portal 8.13, the value got reseted by the default preference value. how can i store the persistent data even after restart the weblogic portal server? thanks.

    I am using -
    ProfileWrapper myProfile = getUserProfile(request);
    myProfile.setProperty(propertyset, propertyname, value);
    This way you can customize a property for a user.
    Hope this helps.
    Kunal

  • How to store persistent data for portlet preference

    i use PortletPreference to store user's personalized data, it works fine. but after i restart the weblogic portal 8.13, the value got reseted by the default preference value. how can i store the persistent data even after restart the weblogic portal server? thanks.

    I am using -
    ProfileWrapper myProfile = getUserProfile(request);
    myProfile.setProperty(propertyset, propertyname, value);
    This way you can customize a property for a user.
    Hope this helps.
    Kunal

  • Trying to figure out how to free up more memory on my macbook pro

    Hello. My name is Seth. I recently started to notice that my RAM when I start up my macbook pro starts at about 3 GB. I wasn't sure if this was a normal number or if there is any way I can free up a little bit more somehow. I got my mac in Novmeber 2010. I have 4GB of DDR3. The version is 10.6.8. If there is anything anyone can tell me to help, please do. If there is any more information you need from me that I forgot to put in this post, tel me and I will reply as quickly as I can. Thank you very much, and I appreciate any help!
    -Seth

    Well, first, Thomas, that was a very gracious reply. Nice to see that kind of thing on forums, as too many any more are just plain caustic. Shows what basic anonymity does to some people, huh.  And actually, such causticness is probably more along the lines of a pendulum swing *away* from the also too-prevalent "political correctness" that, well, weinies need to use. Methinks that perhaps all of America, perhaps all of the world, is becoming pathologically bipolar. LOL   So anyway, wanna say that you sound like a real decent guy. Must be a Mac guy. hehe
    Secondly, my reasons for submitting what I thought were helpful alternatives to looking at spinning beach balls while your fingernails waiting on the keyboard grow another half inch comes from my experiences. I'd like to elucidate.... When I got back into Macs in '06 after 18 yrs on The Dark Side, & 2 or 3 yrs with Macs, professionally, prior to that, I re-started with a PowerBook then. 1GB RAM, max. Lame, even then. And then a MacBook1,1 @1.83. Very first all-white one. 2GB max. Lame. Trouble, trouble. Frustratingly so. And now, I've got a 7,1 @2.4. Very last all-white one Apple made. I like the all-white ones. 2Gigs again, but that I bumped up to its 8Gig max. And STILL I have RAM jams. Not as frequently of course, but they happen. And what I run into *most* often, is the system NOT automagically releasing Inactive RAM. Just sits there. And if I've got FF or something that leaks memory running, & I myself crash & sleep, I wake up to completely or nearly so solidly wired-up RAM. Which means it's power button for 5 seconds time. & then Applejack at reboot to fix stuff that got hosed.   Doesn't happen often, but enough to make me go search for solutions when I shouldn't be having any with the above-average 8Gigs of RAM.
    So one day I discovered the Purge command. And using that has kept the aforementioned scenarios from deteriorating to the aggravating point when not even the beach ball comes up, nor of course anything else. 
    And so I use it. Use it a LOT when I've got open apps' icons spread from one side of my screen to the other, especially Win7 in VMWare when I've got a bunch of Mac stuff open, too. And I have read NOwhere, except what you have written, that there is any "harm" to purging at all. Hasn't caused me any probs, I know that. Only good stuff. I *would* like to know about any possible problems that, as you stated, purging could cause, as published by a Mac magazine or respected tech site. So if you can steer me & others who read this & are curious about the subject to any current articles about that, I would like to take a look-see & learn. But what I'm going by is what has proven to work, for me, & I am pretty certain that at least all Intel machines running 10.6+ work in pretty much the same way too, so....  That's why I posted. Just sharing my experiences, a screenshot, and the simple little script app I made in less than a minute. And I admit, yeah, the XCode DL is pretty darn big. But ya don't have to install everything. Just what's needed, & then you can dump the Receipt file if ya want, or save it to an external something or other.
    But not wanting to be a butt here, I will do some research about the use of purge, because you stated that 'true power users' understand when its use is apt, & when it's needed & so forth. Well, I *know* when it's needed in my experiences, & it does the job, without repercussions of any kind. But I'll look into it, willing to learn & throw away old ideas if appropriate.
    Thirdly, RE: Novice users taking my advice:
    Stupid is as stupid does, Thomas. You know that. I know I've been through that during my occasionally steeper learning curves, maybe you as well. That's how I learned stuff, particularly DOS/Windows, which just screams gimmee your attention anyway. So what I'm saying is that I find it loathsome to think that I or anyone would have to babysit the reckless ones. Who are they? Must I assume that ANYONE & EVERYONE fits that category, & so submit pablum & half-baked mostly useless mediocre BS smoke?  nyu uh. not me. I have enough respect, you might say, for people to give them the benefit of the doubt that they'll choose wisely. And those who don't, well, Darwin's Law steps in. Been there too, done that too. I consider submitting diluted blabla just so disgustingly pompous, really. Sayin' something, but then you're not, too. Self-serving junk, in other words.
    So...... done now.  Thanks for the tips, Thomas, & the advice, & I'll heed ya some but I can't think of readers of these forums as babies who need to be coddled. Mistakes made are learning experiences.  The most important learning being, of course, is when to gamble on possible learning, & when not to. That's the beginning of not making stupid-a** mistakes. And some want to learn that 'hard way' either by choice or, yeah, with intelligence-backed recklessness, & some wouldn't dream of learning that way on their machine. Scares 'em. They don't know that you can *always* click on the 'cancel' button, yaknow?  When in doubt, gamble or get out.  But don't straddle.
    I'm counting on folks having enough brains between their ears to figure out what's doable for them at their skill/knowledge level when they read about tech procedures, & what's not. And what's got the pretty good odds of coming out in their favor, should they take a plunge of some technical sort. And that's learning, too. Probably the best kind, actually. Which couldn't happen unless somebody "pushes the envelope" (apparently) & submits some obscure tech procedures. What I proposed isn't super-techy by any stretch of the imagination in those who know. Not saying my stuff's all that, but I will say that Jobs knew all about that sort of edginess, which hoisted only red flags in some people's minds of course, the mediocrity lovers' minds that is. And I am pretty much like-minded with Jobs' ways in that respect. And I abhor the 'hypersafe,' banal ways of doing things. That ain't different. That's crap. hehe  ok. nuff said. out.....
    Have a good Sunday, Thomas.
    And thanks again for your gracious good-attitude reply to me.
    adios......
    KK

  • How to investigate persistent data connection?

    I have an E6. I have configured a GMail and Yahoo email accounts but have configured it to retrieve only at 8am. So data will be used only during that time or whenever a known internet accessing application is running.
    This was for around 3 months. As soon as I exit say Opera, the data connection would be closed.
    But for the past 2 weeks, the data connection refuses to terminate. Even when I manually terminate by going into Connections, it gets reconnected automatically.
    This behaviour appears suspiciously like a virus / spyware running hidden because task manager shows no running application other than F-Secure which is disabled except for theft protection.
    How to find out if there is any hidden process accessing the internet?
    How to know which applications run at startup?
    Solved!
    Go to Solution.

    Monitor it with this app called 'NetQin Mobile Guard'
    http://mobile-fileshare.com/symbian/(mobiplanet.in)NetQin%20mobile%20guard%20v3.2%20by%20Stanley08.s...

  • How do i:  persistent in-memory table access

    I'm porting an application to a BEA web service. In the existing application, for performance, a table was built from a record file and kept resident in RAM for the life of the application with methods provided for locating a record in that RAM based table.
    Using weblogic I could use a database control to get the record I need however the performance hit is unacceptable hence the RAM based table.
    I could create an entity EJB however persistence through an EJB appears to still utilize database I/O for session persistence so we'd trade one database I/O for another.
    Any suggestions?

    David,
    "David Eberwine" <[email protected]> wrote in message news:1377384.1092937779978.JavaMail.root@jserv5...
    I'm porting an application to a BEA web service. In the existing application, for performance, a table was built from a recordfile and kept resident in RAM for the life of the application with methods provided for locating a record in that RAM based table.
    >
    Using weblogic I could use a database control to get the record I need however the performance hit is unacceptable hence the RAMbased table.
    >
    I could create an entity EJB however persistence through an EJB appears to still utilize database I/O for session persistence sowe'd trade one database I/O for another.
    >
    Any suggestions?What was the question?
    Regards,
    Slava Imeshev

  • My macbook pro's memory is full and I purchased an external hard drive. I am using timemachine, but need to earse/free up some memory on my laptop. How do I do this?

    My macbook pro's memory is full and I purchased an external hard drive. I am using timemachine, but need to earse/free up some memory on my laptop. How do I do this?

    Christinag1317 wrote:
    My macbook pro's memory is full and I purchased an external hard drive. I am using timemachine, but need to earse/free up some memory on my laptop. How do I do this?
    Ok when you refer to "memory" that is the Random Access Memory which is temporary memory the processor (worker) uses to store stuff while it's using it. Power goes off whats in the memory is gone.
    Your storage drive is where data is pernamnetly stored if the power is on/off.
    So what you really mean to say is your storage drive is filled up and you need to make some room.
    You have a TimeMachine drive, what this does is makes a image of your internal storage drive as a backup method, it also allows some "back in time" restoration of your previous deleted files depending how much space is on that drive. The more space, the less data you have, the more days you can go back in time to retrieve something.
    Unfortunatly the TimeMachine drive is not a extra space storage drive, it automatically rotates what appears on your internal storage drive. So if you delete something from the internal drive, it eventually gets deleted from the TimeMachine drive.
    So you need to make some more room on your internal drive, this is rather easy, all you need is ANOTHER external drive and connect it to the Mac. Give it a name like ExtraStorage#1 and thenyou will have to decide which of your User files you really don't need on the internal drive.
    For instance the best choice would be to move some movies out of your Movies folder to another MoviesExtra folder on the ExtraStorage#1 drive.
    Movies take a LOT of drive space and you can always copy them on or off, or watch them from the ExtraStorage#1 drive as well. But if your going to do this a lot, you should consider getting a Firewire 800/400, USB 3,2,1 combination drive as Firewire 800 is fastest and decently priced (Thunderbolt is very high priced and overkill at this time)
    The other things like Documents are quite small, Pictures can take a lot of space if you have a lot, but if you need them on the internal drive then that's better. Music one tends to use a lot or manage playlists and such, but perhaps some music you may which to move off or "prune", I suggest always burning data DVD's of music especially for extra backups.
    Once you have freed some room on the internal drive, this liitle neat program will show you what is taking the largest amount of space on your internal drive.
    http://grandperspectiv.sourceforge.net/
    After a scan, right click on the big squares to "revel in Finder" to show you what's taking the largest amount of space, be warned it also opens up hidden system files and folders, which you won't be able to move. So concentrate on what's inthe Users folder.
    Likely if you have a lot of Movies this is the biggest culprit on most standard internal hard drives. Also if you have something in iTunes that's auto-downloading something like PodCasts and not deleting the older ones and you forget. So go there and fix things and that can free up drive space.
    If you bought a small SSD with your new Mac, then the price of that SSD has come back to haunt you with low storage space, you will have to think carefully what you can live without on the internal drive.
    Once you have slimmed things down, TimeMachine will update to reflect your slimmer internal drive. What this means is there is only one copy of your data on the ExtraStorage#1 drive.
    You need to maintain two copies of your data at all times on seperate hardware, so now you need ANOTHER storage drive (ExtraStorage#2) to copy everythinng of ExtraStorage#1, or else if you drop or have a mechanical problem with ES#1 all that data will be gone!
    If you wish to learn more then I suggest reading these two links
    https://discussions.apple.com/message/16276201#16276201
    http://pondini.org/OSX/Home.html

  • How to free up memory in MacBook Pro?

    How to free up memory in MacBook Pro? (How to avoid getting the revolving rainbow?)

    I compressed some programs and data. I now have 4.56 GB free.
    SMART UTILITY http://www.volitans-software.com/smart_utility.php
    CAPACITY 80.0 GB
    SMART STATUS: YELLOW and "FAILING"
    "Removed 29 bad sectors
    Total errors 1708
    Reallocated 308 bad sectors"
    Do I need to buy Smart Utility?
    Had 5 simultaneous errors at READ DMA EXT. (I don't know what that means). I don't see all the windows that the web site shows. I guess that is for purchased downloads.
    I'd like to reinstate MobileMe's Backup function. Apple says it will work until June so that I could back that up until I get the backup hard drive. I was in the store last week; iCloud will not work on my computer.
    Thanks, DOTro

  • I am trying to install Snow Leapord and I get a response that I do not have enough memoroy.  I recently bought a 2TB WD backup drive.  I backed up the iMac. Now how do I free up more memory?

    I am trying to upgrade from 10.5.8 to Snow Leopard 10.6.3 and I get a message that I do not have enough memory. I recently bought a 2TB WD back-up drive and backed up the entire computer.  Now how do I free up more memory to allow me to install the new software?

    First thing to try is emptying the trash to get more space.
    Go to the Finder -> File Menu -> Empty Trash.
    This will free up some space.
    Next look at your Download folder. Click on "Size" to sort by largest to smallest. This is where you have downloaded files over time and you should be able to delete a good amount of them, if you don't need them any more, to clear up space. Select the files you want to get rid of and hit "Command-Delete". This will move them to the Trash. You will then need to Empty the Trash again.
    You can also look through your documents for large files. Do the same think, click on "Size" in the finder window to sort by largest to smallest.
    Lastly, look at your applications folder. Unlike a PC, you can just Delete applications. Now certain data will still remain, but the bulky items will go away by doing the same "Command-Delete" on the applications you don't want.
    Don't forget, after you have deleted things, you need to Empty the Trash.

  • My macbook air has no longer free memory. Now, when i turn it on, all i can see is a blue landskape and can`t see de dock anymore. how can i clean the memory and get free space?

    hi, my macbook air has no longer free memory space. I haven`t done anything since it started to comunicate me that. now when i turn it on all i can see is de apple on the top left corner and the rest of the monitor is blue. how can i get some memory space since i can`t even onpen the finder?/

    Choose Preferences from the Finder menu, click on the General tab, and uncheck the box to open folders in a new tab.
    (117195)

  • How can i free up more memory

    How can I free up Memory on my mac pro 13"

    For hints on how to free disk/SSD storage see
    https://discussions.apple.com/thread/5872318?tstart=0
    and
    https://discussions.apple.com/thread/5939678?tstart=60

  • Can not down load I0s7 due not enough memory on my iphone5  how can i free up more memory?

    can not down load I0s7 due not enough memory on my iphone5  how can i free up more memory?

    Or, do the update while connected to iTunes, which does not require extra space on your device, and in my experience seems to be a much more reliable update method anyway.

  • My saved messages are using a lot of memory.  How do I free up the memory?

    My saved imessages are using a lot of memory (3.1GB) on my iphone.  How can I free up the memory?

    This is when I go to "usage" and it lists all of the memory used by certain apps.  Messages is the largest, and I swipe to the left to open it and it says that "saved messages" are using all of it.  There is no option to do anything at this screen.

  • How to free up memory while running?

    Hello,
    i´m using a custom OPUI written in LV.
    In there i start TestStand 3.5.
    The model of Teststand then starts two parallel-sequences (as "New Execution" that are loaded in Sequence-File-Load and looping all the time.
    One parallel-sequence checks the buttons of the OPUI and the other parallel-sequence is controling a climatic chamber. When a special temperature is reched then it executes "Test UUT" of the model-sequence (also as "New Execution").
    Everything works fine but someone is eating memory. Everytime when a Test UUT is done the memory goes up. And after it is finished the memory is not released.
    So my question is: How can i free up unused memory (like garbage collector) in teststand, or in LV if there is a special action needed.
    Or perhaps the teststep-results are not removed? So that i create 100s of new executions and they all keep the results?
    I already clicked on "Disable result recording for all steps" in the two parallel-sequences and in all steps in the model. So that i think that only the Mainsequence Callback is creating results.
    Has someone any ideas what i can do?
    Thanks for everything

    If you have result collection disabled for all of your steps then the memory leak is likely due to something else. You might not be closing a reference that you should be. Try to narrow down which part(s) of your sequence are leaking the memory by either stepping through things one step at a time and looking at memory usage or perhaps by cutting out parts of your sequence until the problem goes away. Also, if it's not your sequence then it might be your custom UI that is leaking the memory, to determine this, try running your sequence in the sequence editor and/or one of the UIs that ship with TestStand and see if the problem goes away.
    Hope this helps,
    -Doug

Maybe you are looking for

  • How to set crystal report image object's file path dynamically from file system in vb 2010

    I using visual studio 2010 and sap crystal report is installed on it. I have a report with picture box on it and i need to load image to this picture box from vb e.i. Dim imgPhoto As CrystalDecisions.CrystalReports.Engine.PictureObject = crShortRepor

  • Does the Bone tool work with strokes created using the pencil or line tools?

    I have a working bone rig in a document(CS4) that I created using a SINGLE pencil stroke, and applying the armature to it.  Object drawing was off and it was a single piece with no part being a  symbol.  This was accomplished TWICE for two stick figu

  • Difference in my catalog file size in backup

    Currently using PSE8 on pc platform. Just out of curiosity, why is the "my catalog file" which PSE references on the local drive  so much smaller a full backup of the catalog to an external drive?

  • Help,my American Idol music won't burn to CD

    I've bought some American Idol music,does anyone know how to burn it to a dics.It comes up saying,None of the files can be burned to a MP3 CD,then it says click below for more info,when I do it says,Ameican Idol Studio version is an iTunes Store File

  • Error in Invoicng

    Hello friends, While doing invoicing I am getting following error.The Billing has happened Succesfully. Tried billing through T-code, EA19 / EASIBI. The error Message & Log is as follows : "There are gaps in the definition for tax determination indic