JNA : A fatal error has been detected by the Java Runtime Environment
來源:互聯網
上載者:User
使用JNA 調DLL 常見錯誤之一
錯誤資訊如下
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x72ff2989, pid=1276, tid=4516
# -- 底下這行註明所使用的 JRE, JVM 版本
# JRE version: 6.0_37-b06
# Java VM: Java HotSpot(TM) Client VM (20.12-b01 mixed mode windows-x86 )
-- 錯誤的位置 (來自於C)
# Problematic frame:
# C [MSVCP80.dll+0x2989]
#
# 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.
#
底下一堆資訊
--------------- T H R E A D ---------------
Current thread (0x021ea400): JavaThread "main" [_thread_in_native, id=4516, stack(0x00390000,0x003e0000)]
Registers:
EAX=0x00000008, EBX=0x730c775d, ECX=0x0000001c, EDX=0xed646bff
ESP=0x003deec8, EBP=0x003deedc, ESI=0x0000001c, EDI=0x004eaba8
EIP=0x72ff2989, EFLAGS=0x00010212
(…… 省略 N 行)
Register to memory mapping:
EAX=0x00000008 is an unknown value
EBX=0x730c775d is an unknown value
ECX=0x0000001c is an unknown value
EDX=0xed646bff is an unknown value
ESP=0x003deec8 is pointing into the stack for thread: 0x021ea400
EBP=0x003deedc is pointing into the stack for thread: 0x021ea400
ESI=0x0000001c is an unknown value
EDI=0x004eaba8 is an unknown value