ACIS_Internals::~ACIS_Internals() { outcome prout = api_stop_modeller(); if (!prout.ok()){ Msg::Error("Unable to stop ACIS"); } delete _mm; }
CGenViewerCtrl::~CGenViewerCtrl() { // TODO: Cleanup your control's instance data here. if( m_pHDB != NULL ) { delete m_pHDB; m_pHDB = NULL; } #ifdef ACIS outcome o = api_terminate_hoops_acis_bridge(); check_outcome(o); o = api_stop_modeller(); check_outcome(o); terminate_base(); #endif // ACIS }
int CGenViewerApp::ExitInstance() { #ifdef HOOPS if( m_pHDB != NULL ) { delete m_pHDB; m_pHDB = NULL; } #endif #ifdef ACIS outcome o = api_terminate_hoops_acis_bridge(); check_outcome(o); o = api_stop_modeller(); check_outcome(o); terminate_base(); #endif // ACIS #ifdef VL vl::VisualizationLibrary::shutdown(); #endif // VL return CWinApp::ExitInstance(); }