When debugging, JBuilder Randomly Exits with an error in "Java.exe" what can I do?

Abstract: When debugging, JBuilder Randomly Exits with an error in "Java.exe" what can I do?

Information in this Brief applies to:

  • Borland JBuilder Non-Version Specific
  • Non-OS Specific

Overview

Some machines have a problem with dt_shmem.dll or their video drivers that cause errors with Java.exe.

Details

If you are experiencing intermittent crashes when debugging in JBuilder under Windows, this could be caused by the presence of the dt_shmem.dll in the JDK. This DLL is used as an implementation of the debugging protocol on Windows (used in communication between the debugger and debuggee), and causes intermittent problems. To avoid using this DLL, remove it from any JDKs you are planning to use for debugging, and make sure that any directories that contain this DLL do not appear on your system PATH. If you do this, the alternate dt_socket.dll will be used for the debugging protocol. This DLL does not appear to have the problems of dt_shmem.dll. Alternately you can turn your hardware accelleration all the way down or upgrade/roll back your video drivers.