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:
01102740
Vues:
17
I see the same behavior in both FormClosing and FormClosed, but I only have the code in one of the event handlers. Currently I have the code in the FormClosing event handler.

Einar

>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
Semper ubi sub ubi.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform