rem: previewData.previewArea->Window()->Lock(); previewData.saver->Draw( previewData.previewArea, cycleNumber ); previewData.previewArea->Window()->Unlock(); previewData.previewArea->Flush();
add: if (previewData.previewArea->Window()->Lock()) { if (!previewData.previewArea->IsHidden()) { previewData.saver->Draw( previewData.previewArea, cycleNumber ); } previewData.previewArea->Window()->Unlock();  }
context: int32 previewThread(void* data){	int cycleNumber = 0;	if (previewData.saver == 0)	{		std::cout << "saver not there!\n";		return 0;	}		// TODO: implement lood counting	int32 loopOnCount = previewData.saver->LoopOnCount();	int32 loopOffCount = previewData.saver->LoopOffCount();		while (!previewData.stopMe)	{		previewData.previewArea->Window()->Lock();		previewData.saver->Draw( previewData.previewArea, cycleNumber );		previewData.previewArea->Window()->Unlock();		previewData.previewArea->Flush();		snooze( previewData.saver->TickSize() );		cycleNumber++;	}} // end previewThread()