diff --git a/EgtMachKernel.rc b/EgtMachKernel.rc index 878a4d5..2073082 100644 Binary files a/EgtMachKernel.rc and b/EgtMachKernel.rc differ diff --git a/MachMgrMachGroups.cpp b/MachMgrMachGroups.cpp index 13362eb..217076a 100644 --- a/MachMgrMachGroups.cpp +++ b/MachMgrMachGroups.cpp @@ -371,7 +371,10 @@ MachMgr::PrepareCurrMachGroup( int nId) m_nCurrMGrpId = nId ; m_cCurrMGrp = mgData ; m_nCurrMch = GetMachine( m_cCurrMGrp.MGeoName) ; - m_stuMgr.Init( this) ; + if ( ! m_stuMgr.Init( this)) { + m_nCurrMGrpId = GDB_ID_NULL ; + return false ; + } m_stuMgr.Load() ; m_nPhasesCount = CalcPhaseCount() ; m_nCurrPhase = 0 ; diff --git a/MachineLua.cpp b/MachineLua.cpp index dcddb30..e203a88 100644 --- a/MachineLua.cpp +++ b/MachineLua.cpp @@ -804,7 +804,7 @@ Machine::LuaEmtTcPos( lua_State* L) // carico i dati della posizione cambio utensile if ( ! m_pMchLua->LoadMachineTcPos( sName, sParent, ptPos, vtTDir, vtADir, sGeo, vsAux)) - return luaL_error( L, " Load Machine Standard Head failed") ; + return luaL_error( L, " Load Machine Tc Position failed") ; // restituisco l'indice della posizione cambio utensile int nTcPosId = m_pMchLua->GetTcPosId( sName) ;