void BuildMonitor_Destroy(){
delete g_pWatchBSP;
+ g_pWatchBSP = NULL;
}
CWatchBSP *GetWatchBSP(){
// ------------------------------------------------------------------------------------------------
-guint s_routine_id;
+guint s_routine_id = 0;
static gint watchbsp_routine( gpointer data ){
reinterpret_cast<CWatchBSP*>( data )->RoutineProcessing();
return TRUE;
m_xmlInputBuffer = NULL;
}
m_eState = EIdle;
- if ( s_routine_id ) {
+ if ( s_routine_id != 0 ) {
g_source_remove( s_routine_id );
+ s_routine_id = 0;
}
}
if ( m_eState != EIdle ) {
globalOutputStream() << "WatchBSP got a monitoring request while not idling...\n";
// prompt the user, should we cancel the current process and go ahead?
-// if ( ui::alert( MainFrame_getWindow(), "I am already monitoring a Build process.\nDo you want me to override and start a new compilation?",
-// "Build process monitoring", ui::alert_type::YESNO ) == ui::alert_response::YES ) {
+ if ( ui::alert( MainFrame_getWindow(), "I am already monitoring a Build process.\nDo you want me to override and start a new compilation?",
+ "Build process monitoring", ui::alert_type::YESNO ) == ui::alert_response::YES ) {
// disconnect and set EIdle state
Reset();
-// }
+ }
}
m_pCmd = str_ptr_array_clone( pCmd );
m_iCurrentStep = 0;