No handle to terminate my app
Issue #40
resolved
There needs to be a way to terminate app specific stuff I think. I'm trying to do a remote server task and need a handle to be able to close the connection. Virtualizing CRobotApp::terminate() might help.
void CRobotApp::terminate()
{
/****************************Print Collected Statistics*****************************/
std::cout<<"\nTotal Simulated Time : "<<sutil::CSystemClock::getSimTime() <<" sec";
std::cout<<"\nTotal Control Model and Servo Updates : "<<ctrl_ctr_;
#ifdef GRAPHICS_ON
std::cout<<"\nTotal Graphics Updates : "<<gr_ctr_;
/******************************Termination************************************/
bool flag = chai_gr_.destroyGraphics();
if(false == flag) { std::cout<<"\nError deallocating graphics pointers"; } //Sanity check.
#endif
std::cout<<"\nEnd Time:"<<sutil::CSystemClock::getSysTime();
std::cout<<"\n********************************************\n"<<std::flush;
}
Comments (2)
-
repo owner -
repo owner - changed status to resolved
Fixed as of 58df36c14e21c79154089d769134779133534f88
- Log in to comment
Agreeable suggestion.