diff --git a/GUI/mainwindow.cpp b/GUI/mainwindow.cpp index 93904c0..f63aa4b 100644 --- a/GUI/mainwindow.cpp +++ b/GUI/mainwindow.cpp @@ -316,7 +316,7 @@ void MainWindow::LaunchProcess() void MainWindow::DetachProcess() { - Host::DetachProcess(GetSelectedProcessId()); + try { Host::DetachProcess(GetSelectedProcessId()); } catch (std::out_of_range) {} } void MainWindow::AddHook()