From: enk Date: Thu, 27 Apr 2006 12:06:21 +0000 (+0000) Subject: Fix for Bug IPAL12248: X-Git-Tag: mergeto_trunk_06May06~17 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7c57a34edfe1f98b4b4ab377fdb0c2409d944b90;p=modules%2Fvisu.git Fix for Bug IPAL12248: Crash after close "Animation" dialog box with saving pictures, speed 99 and fit all --- diff --git a/src/VISU_I/VISU_TimeAnimation.cxx b/src/VISU_I/VISU_TimeAnimation.cxx index f2b8e1c8..66b97cd5 100644 --- a/src/VISU_I/VISU_TimeAnimation.cxx +++ b/src/VISU_I/VISU_TimeAnimation.cxx @@ -110,8 +110,10 @@ VISU_TimeAnimation::~VISU_TimeAnimation() * There is no chance for the thread to cleanup after itself, * unlock any held mutexes, etc. In short, use this function only if absolutely necessary. */ - QThread::terminate(); + myDumpPath = ""; QThread::wait(100); + QThread::terminate(); + QThread::wait(400); } @@ -636,7 +638,7 @@ void VISU_TimeAnimation::run() if (isDumping) { // We must unlock mutex for some time before grabbing to allow view updating qApp->unlock(); - msleep(100); + msleep(delay); qApp->lock(); if(!(myFieldsLst[0].myField)) // break, if field was deleted. break;