static QFileInfo aFileInfo;
#ifdef _DEBUG_
-static int MYDEBUG = 0;
+static int MYDEBUG = 1;
#else
-static int MYDEBUG = 0;
+static int MYDEBUG = 1;
#endif
extern "C" {
Engines_Component_i()
{
if(MYDEBUG) MESSAGE("VISU_Gen_i::VISU_Gen_i : "<<theMutex);
- //Mutex mt(theMutex,qApp);
+ if (! Mutex::callFromGUI)
+ Mutex mt(theMutex,qApp);
+ else Mutex::callFromGUI = 0;
Base_i::myMutex = theMutex; //apo
Base_i::myOrb = CORBA::ORB::_duplicate(theORB);
Base_i::myPoa = PortableServer::POA::_duplicate(thePOA);
//omni_mutex_lock aMutexLock(aMutex);
if(MYDEBUG) MESSAGE("VISU_Gen_i::GetViewManager : "<<myMutex);
if(myMutex){
- SMutex mt(myMutex,qApp);
+ //SMutex mt(myMutex,qApp);
+ Mutex mt(myMutex,qApp);
ViewManager_i * aViewManager = new ViewManager_i(myStudyDocument);
return ViewManager::_duplicate(aViewManager->_this());
}