Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2005 Nov : How many times is my program running on a server

www.cryer.info
Managed Newsgroup Archive

How many times is my program running on a server

Subject:How many times is my program running on a server
Posted by:"Colin" (col..@opms.com.au)
Date:Sun, 6 Nov 2005 18:20:29 +0800

I have a program which runs on a server. When the program starts I need to
be able to count the number of times it is being run concurrently so I can
control the number of concurrent users.

At the moment each time the program starts up it writes the user details
into a file. When the program ends it removes the user deatails from this
file. The number of current users is counted in this file. This controls the
number of users allowed to run the program.

This is OK if the user is able to close the progam in the usual way, but
does not work if the machine is shutdown without first closing the program.

Any suggestions how to do this?

Thanks

Colin

Replies:

www.cryer.info
Managed Newsgroup Archive