ObjectDeletion Sample
The sample generates four APDU scripts that demonstrate the object deletion mechanism, applet deletion, and package deletion:
od1-1.scr
- Demonstrates the object deletion mechanism and verifies that memory for objects referenced from transient memory of typeCLEAR_ON_DESELECT
is reclaimed after an applet is deselected.od1-1.scr
does not depend on any other sample. The final state ofcref
memory must be saved to a file forod1-2.scr
to use.od1-2.scr
- Demonstrates the object deletion mechanism and verifies that memory for objects referenced from transient memory of typeCLEAR_ON_RESET
is reclaimed after card reset.The
od1-2.scr
sample must be run afterod1-1.scr
because the initial state ofcref
must be the same as its final state after runningod1-1.scr
. After runningod1-2.scr
, the final state ofcref
must be saved to a file so thatod1-3.scr
can use it.od1-3.scr
- Performs applet deletion, package deletion, and employs theAppletEvent.uninstall
method to uninstall an applet. The sample verifies that all transient memory of typeCLEAR_ON_RESET
andCLEAR_ON_DESELECT
is returned to the memory manager. The sample also demonstrates the use of theAppletEvent.uninstall()
method.The
od1-3.scr
sample must be run afterod1-2.scr
because the initial state ofcref
must be the same as its final state after runningod1-2.scr
.od2.scr
- Demonstrates package deletion and checks that persistent memory is returned to the memory manager. This sample has one script,od2.scr
.
The simulator must be restarted before running each APDU script.
Follow one of these sets of instructions to run this sample: