Page 1 of 1

Experiencing 6F00 when calling one method many times

Posted: Wed Jul 13, 2016 4:48 am
by Nutt1
I have completed a javacard applet. And there is a method which is used to generate a hash result. When I uploaded my applet in card and call this method, it worked fine and returned expected result. But when I put it to a loop and call this method for many times. After about 90 times, it only returned 0x6F00. What does this status mean?

Re: Experiencing 6F00 when calling one method many times

Posted: Wed Jul 13, 2016 6:09 am
by Liguwu
That error may be due to out of memory.

Re: Experiencing 6F00 when calling one method many times

Posted: Wed Jul 13, 2016 9:58 am
by rena2019
add a try-catch block to your code and check the getReason() method of the exception

Re: Experiencing 6F00 when calling one method many times

Posted: Thu Jul 14, 2016 1:48 am
by Nutt1
Thank you very much for all the answers! My problem was solved!

It's just because of memory leaks in my applet. So for the memory of objects and arrays allocated via new keyword, I did them in the applet constructor. Thanks again~