Hi all,
I was wondering ... (and couldn't find anything in the documentation, though
I may have missed it) ... Is there a way to make sure that only one instance
of an application is loaded at a time? Specifically I want to ensure that a
user doesn't run my application twice, and accidentally corrupt the
InstantDB files in the process. Is there a simple way of doing this?
One solution would be to check for the existance of a temporary file on the
file system, and only load the application if that file doesn't exist. Then,
if the application loads successfully, create the file. When the application
exits, the file can be deleted. Any other thoughts?
Cheers,
Greg
-----------------------------------------------------------------------------
To unsubscribe from this mailing list, send email to majordomo@enhydra.org
with the text "unsubscribe instantdb" in the body of the email.
If you have other questions regarding this mailing list, send email to
the list admin at owner-instantdb@enhydra.org.
|