0

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

4

0 に答える 0