SWT: cleaning up before application exit
Posted
by Alexey Romanov
on Stack Overflow
See other posts from Stack Overflow
or by Alexey Romanov
Published on 2010-05-03T18:52:34Z
Indexed on
2010/05/03
18:58 UTC
Read the original article
Hit count: 251
What is the best way for an SWT application to clean up resources before application exit? I see two options:
1) Add a DisposeListener to main window (or better, to the Display
). Will it get run if an uncaught exception happens?
2) Use a shutdown hook. Any problems to be aware of there which aren't mentioned in Design of the Shutdown Hooks API?
© Stack Overflow or respective owner