I have a big problem.
I have a method where I catch a JObjectArray strings and populate a vector of strings, because the vector will be used in a piece of code that is reused in version for application PC.
string linha("");
for (int i = 0; i < tamanhoArray; i++) {
jstring jLinha = (jstring)env->GetObjectArrayElement(objArray, i);
const char * charArray = env->GetStringUTFChars(jLinha, NULL );
if (charArray != NULL)
linha = string(charArray);
env->ReleaseStringUTFChars(jLinha, charArray);
pLista.push_back(linha);
}
The method is performed several times during the execution of the application, but always at a certain point on line 13 (I got debug with "log") for the application and displays logcat "(bug app): Local reference table overflow". Has anyone experienced this problem?