title: java jni Exception Access Violation
body: <p>My java application which uses JNI is crashing with hs_err_pid file giving the error as "Exception Access Violation". The OS is Windows VISTA.</p>
  
  <p>From what I know, my native code is illegally writing to some chunk of memory that does not belong to it.</p>
  
  <p>I have used valgrind on Linux on pure native code to detect such problems in the past.</p>
  
  <p>But when using java, valgrind simply fails and does not work.</p>
  
  <p>What (if any) method would you suggest to identify the offending piece of code?</p>
  
  <p>It is not possible for me to manually dig through the native code (few million lines) to identify it.</p>