Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Process.Start starts 2 processes
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01102735
Message ID:
01102739
Vues:
13
Einar,

Is it in the FormClosing or FormClosed or both? If it's in both, then there's your answer. Otherwise, which is it?

Chad


>This does not make a lot of sense. I have the following code in the FormClosing or FormClosed event handler:
>
>try
>{
>	System.Diagnostics.Process.Start(System.AppDomain.CurrentDomain.BaseDirectory + "myapp.exe");
>}
>catch
>{
>	MessageBox.Show("Unable to execute myapp.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
>}
>
>
>The problem is not that myapp.exe doesn't execute, but rather that two instances of myapp.exe are started!
>If I put the exact same code (as above) in a button click only one instance of myapp is started.
>
>Does anyone know what could cause this behavior?
>
>Thanks,
>Einar
_________________________________
There are 2 types of people in the world:
    Those who need closure
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform