Skip to content
Permalink
Browse files

GSDumpGUI: Make sure all child processes are closed when closing main…

… form. (#2900)

* Make sure all child processes are closed when closing main form

* Try/catch kill processes in case they are starting/exiting, dispose after killing
  • Loading branch information...
Souzooka authored and lightningterror committed Mar 26, 2019
1 parent e736073 commit 55112938a256c6f3281fd2b042418e9dbe6ebf28
Showing with 20 additions and 9 deletions.
  1. +10 −9 tools/GSDumpGUI/Forms/frmMain.Designer.cs
  2. +10 −0 tools/GSDumpGUI/Forms/frmMain.cs

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -456,5 +456,15 @@ private void treTreeView_AfterSelect(object sender, TreeViewEventArgs e)
}
treTreeView.SelectedNode = e.Node;
}

private void GSDumpGUI_FormClosing(object sender, FormClosingEventArgs e)
{
// Make sure all child processes are closed upon closing the main form
Processes.ForEach(p =>
{
try { p.Kill(); } catch { }
p.Dispose();
});
}
}
}

0 comments on commit 5511293

Please sign in to comment.
You can’t perform that action at this time.