title: jni table overflow even after deleteLocalRef
body: <p>When I run the code, I get an error "failed adding to JNI local ref table has 512 entries"</p>
  
  <p>This is my code:</p>
  
  <pre><code>jstring pJNIData = pJNIEnv-&gt;NewStringUTF ( variables[0].GetStringValue() );
  
  pJNIEnv-&gt;CallStaticVoidMethod ( pJNIActivityClass, pJNIMethodIDStartTime, pJNIData ) ;
  
  pJNIEnv-&gt;DeleteLocalRef(pJNIData);
  </code></pre>
  
  <p>I have read several suggestions, but none of them work! In spite of the <code>DeleteLocalRef</code>, it fails to works. The function is used in a profiler that literally calls all the functions...</p>