title: NDK - Loop with JObjectArray
body: <p>I have a big problem.</p>
  
  <p>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.</p>
  
  <pre><code>string linha("");
  for (int i = 0; i &lt; tamanhoArray; i++) {
      jstring jLinha = (jstring)env-&gt;GetObjectArrayElement(objArray, i);
      const char * charArray = env-&gt;GetStringUTFChars(jLinha, NULL );
      if (charArray != NULL)
          linha = string(charArray);
      env-&gt;ReleaseStringUTFChars(jLinha, charArray);
      pLista.push_back(linha);
  }
  </code></pre>
  
  <p>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?</p>