fixed crash for windows if console widow is closed or CTRL_C/CTRL_BRAK keys in console are pressed.

This commit is contained in:
Anatoly Baksheev
2014-02-15 20:08:04 +04:00
parent 1a5dfe421d
commit 56754e907d
6 changed files with 62 additions and 12 deletions

View File

@@ -72,6 +72,8 @@ cv::viz::Viz3d::VizImpl::VizImpl(const String &name) : spin_once_state_(false),
setBackgroundMeshLab();
}
cv::viz::Viz3d::VizImpl::~VizImpl() { close(); }
/////////////////////////////////////////////////////////////////////////////////////////////
void cv::viz::Viz3d::VizImpl::TimerCallback::Execute(vtkObject* caller, unsigned long event_id, void* cookie)
{