title: env->ReleaseDoubleArrayElements() in jni
body: <p>i got problem in releasedoublearrayelements its crashing in this function so could you please help me out of this
  this is my code:</p>
  
  <pre><code>jdouble *dxyz = new jdouble[3];
      dxyz[0] = 0.0;
      dxyz[1] = 0.0;
      dxyz[2] = 0.0;
      jdoubleArray darr = env-&gt;NewDoubleArray(3);
      env-&gt;SetDoubleArrayRegion(darr,0,3,dxyz); 
  
      jclass dclass = env-&gt;GetObjectClass( darr );
      jobjectArray iarr = env-&gt;NewObjectArray(nbControlNodes,dclass,darr);
      env-&gt;ReleaseDoubleArrayElements(darr,dxyz,JNI_ABORT);//its crashing here
  </code></pre>