Ensure only one appl. is execution on PC?
Hi there,
Due to my inadequacy, I need some help for one ~{!0~}simple problem~{!1~}.
(1) Only one copy of the application can be executed at one time on a desk top. One of the solutions I am trying is to check if a ~{!0~}special temporary file~{!1~} existed when it first invoked. If the ~{!0~}file~{!1~} existed, message is displayed to alter the user before it aborts itself. Conversely it creates a temporary file which will be deleted when this application is completed by the user. However this approach will cause problem when the system crashes or the user ~{!0~}kills~{!1~} it. Under this abnormal condition, the temporary file will cause problem. Is there a method that Java provided for detecting this condition?
|