void ShellCommand::CleanUp() { if (m_proc) { delete m_proc; m_proc = NULL; } SendEndMsg(); }
void AsyncExeCmd::ProcessEnd(wxProcessEvent& event) { //read all input before stopping the timer if( !m_stop ){ PrintOutput(); } m_timer->Stop(); m_busy = false; m_stop = false; SendEndMsg(event.GetExitCode()); }