Java崩溃故障排除

时间:2013-04-06 23:13:12

标签: java crash autohotkey native-code java-native-interface

我正在使用允许我在java中运行AHK代码的结构,我在启动后大约3-5分钟后遇到错误。我想知道是否有人有任何关于我应该调试的建议

    #
    # A fatal error has been detected by the Java Runtime Environment:
    #
    #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x61308396, pid=9820, tid=7128
    #
    # JRE version: 7.0_17-b02
    # Java VM: Java HotSpot(TM) Client VM (23.7-b01 mixed mode, sharing windows-x86 )
    # Problematic frame:
    # V  [jvm.dll+0x148396]
    #
    # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
    #
    # An error report file with more information is saved as:
    # C:\Users\Preston\IdeaProjects\jBot\hs_err_pid9820.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.
    #

hs_err_pid9820.log:http://pastebin.com/T7yhGNti

public static boolean control() {
    try {
        NativeCall.init();
        init();
        return true;
    } catch (Throwable t) {
        t.printStackTrace();
        System.out.println("\n" + "Something went wrong...");
        return false;
    }
}


public static void init() {
    IntCall textdll = new IntCall("AutoHotkey.dll", "ahktextdll");
    textdll.executeCall(new Object[]{"", "", ""});
    exec = new IntCall("AutoHotkey.dll", "ahkExec");
}

public static void ahk(String code) {
        exec.executeCall(code);
}

完整源代码:http://pastebin.com/ndrnX4a1

0 个答案:

没有答案