Dear colleagues,

        I apologize if I disturb you or if I break any rules of this
mailing-list, but I have the very strange problem with JCOP cards, and
I cannot find anyone who can help me.

        The strange point I've encountered lies in permanent RAM
consumption (hereafter "RAM" will mean "memory pool for transient
objects"). I mean that in certain moment card allocates some portion
of RAM that will never be deallocated again, even if I delete both
instance and package of my applet.

        This leak is occured, on my suspicion, in the moment of RSA
key creation. For example, when I perform the downloading of DGI=8103
(ICC key modulus) into instance of VSDC applet, card 'loses'
approximately 90 bytes of memory. Further deletion of VSDC instance
doesn't free this memory. The same effect occured when my own applet
creates instance of RSAPublicKey component and initialize it with some
key.

        This leak is occured just once. With the consequent
instantiating or downloading and instantiating of the same applet
(which uses the same length of key), this leak does not occure. For
example, sequence may be the following:

        1. I take new card from the stock. We assume, it has 392 bytes
of memory. (I count it with applet which allocates the largest
available block and returns the result. By the way, this block is
having been deallocated correctly during the deletion of applet).

        2. I instantiate the VSDC applet. Then I 'count' the memory and
find that I have 238 bytes free (VSDC uses 154 bytes).

        3. I delete the VSDC applet. RAM free = 392 bytes. Perfect.

        4. I install the VSDC applet again. RAM free = 238. Correct.

        5. I try to personalize VSDC applet (with the command like
that: CLA:80 INS:E2 P1:60 P2:0D Lc:6B Data:8103...)

        6. I delete instance of VSDC. Then I 'count' the memory and
find that I have just 303 bytes available for transient objects.

        7. Any further manipulations doesn't affect on the amount of
memory. VSDC applet allocates it and deallocates correctly.


        My question is: what is the nature of the described effect?
        ===========================================================

        P.S. See
http://forum.java.sun.com/thread.jsp?forum=23&thread=452885&tstart=0&trange=15 .

        P.P.S. If you need any detailed descriptions (including the
cards' ATRs, source of applet that counts memory, or anything else),
it is available by request. Cards used are JCOP20, JCOP30.

        Thank you in advance. Sorry for my English. I would really
appreciate your help.


-- 
      Best regards,
      Maxim Dyachenko,
      Program Engineer,
      NCT Group, Kiev, Ukraine,
      phone: +380-44-219-3002.  




---
> Visit the OpenCard web site at http://www.opencard.org/ for more
> information on OpenCard---binaries, source code, documents.
> This list is being archived at http://www.opencard.org/archive/opencard/

! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email
! to
!                           [EMAIL PROTECTED]
! containing the word
!                           unsubscribe 
! in the body.

Reply via email to