KMatle Expert Licensed User Longtime User Oct 28, 2015 #1 Is there a way to catch if a non ui program will be closed?
R Roycefer Well-Known Member Licensed User Longtime User Oct 29, 2015 #2 See my jAWTRobot library. There's a function called AddShutdownHook that allows you to run a method in a new thread when the JVM is shutting down under its own power (as opposed to being shut down by the OS). Upvote 0
See my jAWTRobot library. There's a function called AddShutdownHook that allows you to run a method in a new thread when the JVM is shutting down under its own power (as opposed to being shut down by the OS).
Erel B4X founder Staff member Licensed User Longtime User Oct 29, 2015 #3 In most cases there is nothing that you can do as the process is immediately killed. See this answer: http://stackoverflow.com/questions/7974560/any-shutdown-hook-when-application-is-force-closed Upvote 0
In most cases there is nothing that you can do as the process is immediately killed. See this answer: http://stackoverflow.com/questions/7974560/any-shutdown-hook-when-application-is-force-closed
KMatle Expert Licensed User Longtime User Oct 29, 2015 #4 Ok, I will try some sort of "restart" via cron and will post an example... Upvote 0