Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#322 OJ stops without warnings on system shutdown

open
nobody
None
5
2013-05-24
2013-05-24
Jukka Rahkonen
No

Tested with version 1.6.1 release on Windows.
If there are layers with unsaved edits in OpenJUMP and user ask computer to shut down, OpenJUMP is closed without any warnings and unsaved edits are lost. For comparison, Kosmo GIS 3.0 is keeping the computer in such a state that operating system sends a message that Kosmo prevents the shutdown and asks if user wants to cancel or do a forced shutdown.

Discussion

  • Don't know how Windows is "killing" the Java VM during system shutdown. The only possibility to avoid lost of data is Runtime.addShutdownHook(). Here we can add a Thread, which ask's the user if there are unsaved layers. This Thread is startet if the Java VM is shutting down.