
JNA调用dll时,dll文件中char[]用strcpy();进行复制就出现以下错误,怎么回事??
#AfatalerrorhasbeendetectedbytheJavaRuntimeEnvironment:##EXCEPTION_ACCESS_VIOLATION(0...
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0318105b, pid=9064, tid=7704
#
# JRE version: 7.0_17-b02
# Java VM: Java HotSpot(TM) Client VM (23.7-b01 mixed mode, sharing windows-x86 )
# Problematic frame:
# C [testDll5.dll+0x105b] add+0x2b
#
# Core dump written. Default location: E:\workshop\JNA_Test3\hs_err_pid9064.mdmp
#
# An error report file with more information is saved as:
# E:\workshop\JNA_Test3\hs_err_pid9064.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug. 展开
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0318105b, pid=9064, tid=7704
#
# JRE version: 7.0_17-b02
# Java VM: Java HotSpot(TM) Client VM (23.7-b01 mixed mode, sharing windows-x86 )
# Problematic frame:
# C [testDll5.dll+0x105b] add+0x2b
#
# Core dump written. Default location: E:\workshop\JNA_Test3\hs_err_pid9064.mdmp
#
# An error report file with more information is saved as:
# E:\workshop\JNA_Test3\hs_err_pid9064.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug. 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询