Communication between 2 instances of the same program
Posted on 2006-07-19
I have a program that acts as a scheduler. It is possible to open mutliple instances of this program on the same machine (several people can edit the different schedules at one time ). Only one program however should be acting as the scheduler.
When an instance of the program is started I want it to check for other instances
- if there are no other instances then it should become the scheduler
When an instance of the program closes and it is the scheduler, it needs to look for another instance and tell that instance to become the scheduler.
Also, the apps will be running on a terminal server by different users.