InstantDB Project
About InstantDB
Project Mail Lists
Short History
Reporting Bugs
Screen Shots
3rd Party Examples
FAQs

Software
Downloads
Documentation
CVS Repositories
Roadmap
License

About Enhydra.org
Who We Are
News, Articles & Events
Getting Involved
Contact Us

Community
Demos
Contributions
Resources
Case Studies
On The Edge! -NEW-
Commercial Vendors


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

InstantDB: Only one instance?


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.