Note that there are some explanatory texts on larger screens.

plurals
  1. POSafari is crashing when JVM get killed
    primarykey
    data
    text
    <p>i was crawling google couple of hours to search for that kind of problem but i could not find any working solution, i hope your guys can help me out!</p> <p>i have a java applet which read the COM ports, after that process i gonna kill it to be able to read it again with another applet which gets loaded after i redirect the user to another page.</p> <p>The problem is when i kill the first applet, the hole browser crashes or is closing for no reason...</p> <p>below my killer function ^^</p> <pre><code>public void killMobileChecker() {        try {            System.exit(0);        } catch (Exception ex) {            if (log_level &gt;= 4) {                ex.printStackTrace();            }        }    } </code></pre> <p>if i dont call that function safari will not close/crash but the next java applet is not able anymore to read the COM port.</p> <p>Does anybody have a clue what safari or likely me is doing wrong?</p> <p>** Edit script to kill all open threads</p> <pre><code> private void closeConnection() {        if (portId != null &amp;&amp; port_opened) {            try {                if (input != null) {                    input.close();                }                if (output != null) {                    output.close();                }                if (serialPort != null) {                    serialPort.close();                }                port_opened = false;            } catch (Exception ioe) {                if (log_level &gt;= 4) {                    ioe.printStackTrace();                    System.out.println("System_Error_closing_Comm_Port");                }            }            if (log_level &gt;= 4) {                System.out.println("\r\nMobile Comm port closed\r\n");            } //                LogUtilities.writeLog("\r\nClosing Mobile Comm port...\r\n");        }    } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload