日期:2014-05-20  浏览次数:20735 次

斑竹帮我看看,这个问题扰我一个星期了
JNI,调用本地dll的问题:

#
#   An   unexpected   error   has   been   detected   by   HotSpot   Virtual   Machine:
#
#     EXCEPTION_ACCESS_VIOLATION   (0xc0000005)   at   pc=0x00000000,   pid=3860,   tid=3320
#
#   Java   VM:   Java   HotSpot(TM)   Client   VM   (1.5.0-b64   mixed   mode,   sharing)
#   Problematic   frame:
#   C     0x00000000
#

---------------     T   H   R   E   A   D     ---------------

Current   thread   (0x00823350):     JavaThread   "main "   [_thread_in_native,   id=3320]

siginfo:   ExceptionCode=0xc0000005,   reading   address   0x00000000

Registers:
EAX=0x00000000,   EBX=0x26ba4bb0,   ECX=0x00000032,   EDX=0x00000032
ESP=0x0007f9e0,   EBP=0x0007fa44,   ESI=0x0007f9ec,   EDI=0x0007fa44
EIP=0x00000000,   EFLAGS=0x00010246

Top   of   Stack:   (sp=0x0007f9e0)
0x0007f9e0:       10001307   00000032   00000032   00823350
0x0007f9f0:       26ba4bb0   26ba4bb0   cccccccc   cccccccc
0x0007fa00:       cccccccc   cccccccc   cccccccc   cccccccc
0x0007fa10:       cccccccc   cccccccc   cccccccc   cccccccc
0x0007fa20:       cccccccc   cccccccc   cccccccc   cccccccc
0x0007fa30:       cccccccc   cccccccc   cccccccc   02ea0000
0x0007fa40:       00000000   0007fa78   00bd826f   0082340c
0x0007fa50:       0007fa90   00000032   00000032   0007fa5c  

Instructions:   (pc=0x00000000)
0xfffffff0:      


Stack:   [0x00040000,0x00080000),     sp=0x0007f9e0,     free   space=254k
Java   frames:   (J=compiled   Java   code,   j=interpreted,   Vv=VM   code)
j     com.gwall.assets.model.CodePrintOut.PTK_SetLabelHeight(II)I+0
j     com.gwall.assets.model.CodePrintOut.main([Ljava/lang/String;)V+49
v     ~StubRoutines::call_stub

---------------     P   R   O   C   E   S   S     ---------------

Java   Threads:   (   =>   current   thread   )
    0x00833e80   JavaThread   "Low   Memory   Detector "   daemon   [_thread_blocked,   id=3944]
    0x008312b0   JavaThread   "CompilerThread0 "   daemon   [_thread_blocked,   id=2348]
    0x00830110   JavaThread   "Signal   Dispatcher "   daemon   [_thread_blocked,   id=3880]
    0x0082f710   JavaThread   "Finalizer "   daemon   [_thread_blocked,   id=3884]
    0x0082e490   JavaThread   "Reference   Handler "   daemon   [_thread_blocked,   id=3324]
=> 0x00823350   JavaThread   "main "   [_thread_in_native,   id=3320]

Other   Threads:
    0x0082d660   VMThread   [id=3876]
    0x00834a50   WatcherThread   [id=3948]

VM   state:not   at   safepoint   (normal   execution)

VM   Mutex/Monitor   currently   owned   by   a   thread:   None