Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Just one at a time
Message
De
05/08/1998 15:30:58
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00124111
Message ID:
00124235
Vues:
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.
Don't worry I'm just looking for more evidence to back-up my arguments when my boss ask me about this matter...seems like We have to migrate to VFP soonest that I thought.

thanks George.
An Intelligent fool can make things bigger and more complex... It takes a touch of a genius -and a lot of courage- to move in the opposite direction".
-Albert Einstein
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform