Originally posted by Vijay Vaddem:
I heard eclipse does something similar to this....
U mean to say that i should create a file and save it on local system
and check it everytime??
No I dont understand the workings of eclipse.
Yeah creating a file (eg lock.txt) if it does'nt already exist and making an entry would be one of the ways of achieving some kind of lock. The app can check for the presence of the flag in the file and decide the future course.
I mean if flag indicates that another instance is already running, you might inform the user and exit else start another instance.