0

In my standalone GUI application, I will install a Windows Closed handle on the application

formWindowClosed

within the closed handle, I will perform necessary clean up, and did a final System.exit(0) at the every last code.

This works well, until I receive a complain from customer that the program is not able to shut down properly. My suspect is that, there are still pending I/O operation, which cannot even be interrupted by System.exit(0).

I wish to use Process.destroy() too, to give a final HIT to the application.

However, I am not sure how I can obtain current running process.

Cheok Yan Cheng
  • 47,586
  • 132
  • 466
  • 875

1 Answers1

1

You might want to check out this similar question on SO.

Community
  • 1
  • 1
Taylor Leese
  • 51,004
  • 28
  • 112
  • 141