diff --git a/EXE_MachMgr.cpp b/EXE_MachMgr.cpp index f676ac5..a3fff0d 100644 --- a/EXE_MachMgr.cpp +++ b/EXE_MachMgr.cpp @@ -2776,10 +2776,20 @@ ExeEstimate( const string& sEstFile, const string& sInfo) //----------------------------------------------------------------------------- bool -ExeSimulate( int& nErr, std::string& sError) +ExeSimulate( int& nErr, string& sError) { IMachMgr* pMachMgr = GetCurrMachMgr() ; VERIFY_MACHMGR( pMachMgr, false) + // forzo aggiornamento + if ( ! ExeApplyAllMachinings( false, false, sError)) { + // assegno il codice di errore + nErr = SHE_INIT ; + // assegno stringa di errore + sError = "Starting simulation failed" ; + ExeOutLog( sError, 1) ; + // esco + return false ; + } // inizializzo lo stato bool bContinue = true ; nErr = SHE_NONE ; diff --git a/EgtExecutor.rc b/EgtExecutor.rc index 0dc7393..6e11ee5 100644 Binary files a/EgtExecutor.rc and b/EgtExecutor.rc differ