Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Prevent a .NET program for starting if the .exe is in us
Message
De
27/03/2017 10:02:17
 
 
À
27/03/2017 01:27:52
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01649285
Message ID:
01649380
Vues:
32
>I think so, Bill.
>
>Just wanted you to know that on a terminal server ( and maybe a normal computer), it is not possible for two users to run that app at the same time
>If that is your intention, OK
>If not use a Local (bound to a session) mutex

I tested this by starting the app on my machine and then trying to start it again on the same machine.
When I tried to start the second instance, I got the message that the app was in use, which is exactly what I wanted.

A couple of times, though, something weird happened.
When the app runs - about 3 minutes-, it displays a win form saying that a long process is running.
When I tried to start the second instance, the win form of the first instance said "Not responding"
The first app eventually completed, though.
It did that a few times and never did it again.
Anyone who does not go overboard- deserves to.
Malcolm Forbes, Sr.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform