我用java jnative调用dll, 前面几个接口都是使用正常的.
但是有个接口调用过之后,会抛个异常,如下:
An unrecoverable stack overflow has occurred.
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# EXCEPTION_STACK_OVERFLOW (0xc00000fd) at pc=0x0da1db27, pid=444, tid=580
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0-b64 mixed mode, sharing)
# Problematic frame:
# C [VodCltApi.dll+0x1db27]
#
# An error report file with more information is saved as hs_err_pid444.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
========= 但是这个接口我用VC调用是正常的.不知道是哪里出了问题.
------解决方案--------------------
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# EXCEPTION_STACK_OVERFLOW (0xc00000fd) at pc=0x100042c7, pid=2324, tid=3496
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_12-b04 mixed mode, sharing)
# Problematic frame:
# C [sftp_p2p.dll+0x42c7]
#
--------------- T H R E A D ---------------
Current thread (0x003cb050): JavaThread "main" [_thread_in_native, id=3496]
siginfo: ExceptionCode=0xc00000fd, ExceptionInformation=0x00000000 0x00030464
Registers:
EAX=0x0001c130, EBX=0x00000000, ECX=0x00030464, EDX=0x0005f538
ESP=0x0004645c, EBP=0x00046464, ESI=0x0005f5c8, EDI=0x0005f544
EIP=0x100042c7, EFLAGS=0x00010206
Top of Stack: (sp=0x0004645c)
0x0004645c: 0005f530 1000137d 0005f544 1000194c
0x0004646c: 0005f538 0005f530 00000000 000464cc
0x0004647c: 000030f0 0005f5b8 0005f5c8 00000000
0x0004648c: cccccccc cccccccc cccccccc cccccccc