Question : My app is locking up when I close an exe the app opened

I called an exe in the app I created and it works but when I close the exe I called the app i created locks up - Does anybody know how to fix this?

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
private void btnStartLP_Click(object sender, EventArgs e)
        {
            string curFile = @"C:/Program Files/App/app.exe";
            MessageBox.Show((File.Exists(curFile) ? "Opening......" : "Please Install App \n from Install sets."));
            btnStartLP.Enabled = false;

            if (File.Exists(curFile))
            {
                var proc = new Process();
                proc.StartInfo.FileName = "C:/Program Files/App/app.exe";
                proc.Start();
                proc.WaitForExit();
                var exitCode = proc.ExitCode;
                proc.Close();
            }
        }

Answer : My app is locking up when I close an exe the app opened

Yes, I am hoping for that. We will take the end sector of partition and restore it to the first sector. There is 50% chance that this helps. But first we need to save first sector.
Random Solutions  
 
programming4us programming4us