Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine # of times that VFP .exe is running on a PC
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00779412
Message ID:
00779421
Views:
11
Alan,

The Mutex is windows object that used by that code. It can be replaced with windows Event object from the download file. The code itself uses application caption to find another (already running) instance. So you're right that already running instance wouldn't be found if it's caprtion is changed.


Sergey,
>
>Sometimes the _screen.caption is being changed by the app based upon the user's choice of a menu/function.
>Am I correct in assuming that this can cause Mutex to not find the other instance of the app?
>
>TIA.
>
>>>Is it possible to determine whether a VFP 7 .exe is running more than once on a PC running either W98, ME, 2000 or XP?
>>>Here is my scenario:
>>>I don't think I can use a semaphore file without a lot of work because most forms, etc are closing all tables upon release.
>>>Also, creating a file when the app starts and then deleting it upon exit can result in support calls if the app doesn't terminate gracefully.
>>>
>>>TIA.
>>
>>Hi Alan,
>>
>>Check Implementation of the Win32 Event object File #9807. It shows how to use windows Event object to implement single-instance app. Here's another one Re: Only open application once Message #585856. It uses windows Mutex.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform