有一段程序,调用一个数据库的动态链接库(JNA可以直接调用,不用在生成动态链接库)import com.sun.jna.*;
public class getPIJNA 
{
public static void main(String[] args) throws Exception
{
int b=0;
                lib.pipt_findpoint("CDT158", b);
System.out.println("b="+b);
        }
}interface PIAPI32 extends Library
{
PIAPI32 INSTANCE = (PIAPI32) Native.loadLibrary("piapi32", PIAPI32.class);
int pipt_findpoint(String tagName, String pointNumber);
}
lib.pipt_findpoint("CDT158", b)这个方法的作用是可以根据CDT158这个point name返回相应的point id。
我调用这个命令得到b时,java报错:# An unexpected error has been detected by Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x65609613, pid=4528, tid=4560
#
# Java VM: Java HotSpot(TM) Client VM (10.0-b19 mixed mode, sharing windows-x86)
# Problematic frame:
# C  [piapi32.dll+0x9613]
#
# An error report file with more information is saved as:
# G:\workspace\testPIEDA\hs_err_pid4528.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
跪求达人可以帮我解决这个问题,得到b值,多谢多谢!!!