Page 1 of 1

javacard byte array max length

Posted: Thu Nov 26, 2015 5:07 am
by KevinAli
What is the maximum length when defining a byte array in java card?

In my 32k java card, I defined a byte array with length of 9*1024 and it returned 6A 84 error (6A 84 means "Not enough memory space in the file").
But when I define it with length of 8*1024, there is no error.

Re: javacard byte array max length

Posted: Thu Nov 26, 2015 11:30 am
by UNKNwYSHSA
Which method you used to allocate the byte array? "new" statement or makeTransientXXXXArray()?
What's the size of COR/COD/NVM size when you allocate the byte array?