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
  • 48,324
  • 124
  • 436
  • 828

1 Answers1

1

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

Community
  • 1
  • 1
Taylor Leese
  • 48,798
  • 27
  • 108
  • 140