666 wrote:Yes I would :) You can use the garbage collector (if it is supported) but I do not like this myself. Is the large applet instance an issue? Do you need more space on the card? Are you an application provider and the instance is created by a third party service provider? There are several things to be aware of in an embedded environment. If you applet size can grow dynamically, it can be difficult to define a profile that specifies how much space your applet uses so others can know how much space to expect to be left on a card with your applet present.
you can allocate memory at any time.
on some cards with carbage collector support you can also free memory.
but if Shane will answer this question, he will say that allocating at constructor and managing memory by yourself is better, Re: Memory freed