#include CORBA_SERVER_HEADER(SALOME_Session)
#include CORBA_SERVER_HEADER(SALOMEDS)
+#include <time.h>
+
#include <QDir>
#include <QFile>
#include <QApplication>
virtual bool notify( QObject* receiver, QEvent* e )
{
-#if OCC_VERSION_LARGE < 0x06010100
- // Disable GUI user actions while python command is executed
- if (SUIT_Session::IsPythonExecuted()) {
- // Disable mouse and keyboard events
- QEvent::Type aType = e->type();
- if (aType == QEvent::MouseButtonPress || aType == QEvent::MouseButtonRelease ||
- aType == QEvent::MouseButtonDblClick || aType == QEvent::MouseMove ||
- aType == QEvent::Wheel || aType == QEvent::ContextMenu ||
- aType == QEvent::KeyPress || aType == QEvent::KeyRelease ||
- aType == QEvent::Accel || aType == QEvent::AccelOverride)
- return false;
- }
-#endif
#ifdef ENABLE_TESTRECORDER
return myHandler ? myHandler->handle( receiver, e ) :
//PyRun_SimpleString("orb.destroy()");
// Destroy the ORB:
- MESSAGE("Explicitely destroying the ORB (hoping to kill omniORB threads ...)");
+ sleep(2);
+ //std::cout << "@@@@@ Explicitely destroying the ORB (hoping to kill omniORB threads ...)\n";
ORB_INIT * init = SINGLETON_<ORB_INIT>::Instance();
if (init)
init->explicit_destroy();
+ //std::cout << "@@@@@ ORB destroyed\n";
// After ORB destruction
- PyGILState_Ensure();
if(Py_IsInitialized())
- Py_Finalize();
+ {
+ PyGILState_Ensure();
+ //std::cout << "@@@@@ About to PyFinalize\n";
+ Py_Finalize();
+ //std::cout << "@@@@@ DONE PyFinalize\n";
+ }
if ( shutdownAll )
- killOmniNames();
+ {
+ //std::cout << "@@@@@ About to kill omni\n";
+ killOmniNames();
+ //std::cout << "@@@@@ DONE kill omni\n";
+ }
MESSAGE( "Salome_Session_Server:endofserver" );
return result;