Author Topic: VS2017-B1 Stop-build doesn't work for Java apps  (Read 306 times)

Marcel

  • Senior Community Member
  • Posts: 171
  • Hero Points: 13
VS2017-B1 Stop-build doesn't work for Java apps
« on: August 06, 2017, 05:06:33 pm »
Stop-build [Ctrl-C] is no good for Java apps, it just causes the JVM to produce a heap dump.  Stop-build needs to actually kill the Java process.
Try it out for yourself, compile and run this little demo.
Code: [Select]
public class demo {
  public static void main(String args[]) {
    boolean machineRustedOut = false;
    while (!machineRustedOut) {
      try {
        Thread.sleep(1000);
        System.out.println("Still here");
      } catch (InterruptedException ie) {
        System.out.println("Who interrupts my sleep?");
      }
    }
    System.out.println("Corrosion took its toll");   
  }
}

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4243
  • Hero Points: 310
Re: VS2017-B1 Stop-build doesn't work for Java apps
« Reply #1 on: August 07, 2017, 04:16:06 pm »
What you can do, is try to exit SlickEdit. It will attempt to exit the process buffer. When it fails, you should be prompted whether to kill the process. I think killing the process will work.

I sometimes just type "save-config" on the command line followed by "fexit". We've improved "fexit" to kill the process in the process buffer.

WARNING: "fexit" doesn't check whether buffers are saved. It just exits anyway. This command is more for the developers of SlickEdit. "safe-exit" is the safe way to exit SlickEdit.
« Last Edit: August 08, 2017, 02:36:57 pm by Clark »