Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Just one at a time
Message
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00124111
Message ID:
00140667
Views:
31
>>>>Hi all,
>>>>How can avoid run two or more instances of an application in the same station...
>>>>
>>>>Thanks.
>>>
>>>Hi William,
>>>
>>>Vlad Tatavu has a class available in the download section that will allow you to setup a program that can only be run once. That's one way. Or you can download my Is_Run32 program and use that to check for another existence of an application. This method is similar to the way the MS KB article approaches it. Or (if you can wait until next month) you can read my article "Creating Single Instance Applications" in the October issue of FoxPro Advisor. This uses another method, namely, the one recommended by the Win32 SDK.
>>>
>>>hth.
>>.....I almost forget, I'm trying to implement this feature (one at a timee) on Fox Pro Windows 2.6.
>
>Ack...You've got problems. I used to run the 16 bit version of Is_Run32 under FPW to do this. It works OK, but you will end up with "Cannot Find Instance" errors from Windows if a second copy is started and aborted. This will occur in the originally started program. What happens is that both are trying to use the same address space, and the second one releases both instances. The first program keeps running, but this error occurs when the user tries to shutdown. Very ugly, but that's the only side effect I know of. BTW, the original Is_Run function is included with Is_Run32.
>
>Even using the technique in my article won't stop this from happening. Sorry.

George,

I looked in August, September *and* October and found no reference to this subject... the article I did find talked about the API but did not address multiple instances...

Could you steer me in the right direction?

TIA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform