if in your calling program you use a file exclusively then when the program starts check to see if the file can be used exclusively, if it can, no one is using the program otherwise warning about single user. Don't know if this will work taking into account a power failure etc but might.
Slán
~M
>Hi,
>
>I have an application (written in VFP6) that I need to keep secure and have only ONE instance of it running on any given workstation. I have a temporary solution as to where I create a file in the default directory to let the application know that it is running. When a user tries to open another instance of this application, it will see this file and tell the user that another instance is already running. When I close the application, this file gets renamed or deleted. The problem lies when the program is abruptly shut down (power off, unplugged) the files never gets renamed or deleted. SO when the PC is powered back up, the user gets the message that this program is already running. Anu ideas on how to handle this situation better? Thank you.
>
>Tim
Go raibh maith agat
~M