#include CORBA_SERVER_HEADER(SALOMEDS)
#include "utilities.h"
-#include "LocalTraceCollector.hxx"
+#include "SALOMETraceCollector.hxx"
#include "SALOME_Session_i.hxx"
#include "Session_ServerLauncher.hxx"
+using namespace std;
extern "C" int HandleSignals(QApplication *theQApplication);
static int MYDEBUG = 0;
#endif
+void MessageOutput( QtMsgType type, const char *msg )
+{
+ switch ( type ) {
+ case QtDebugMsg:
+ MESSAGE( "Debug: " << msg );
+ break;
+ case QtWarningMsg:
+ MESSAGE( "Warning: " << msg );
+ break;
+ case QtFatalMsg:
+ MESSAGE( "Fatal: " << msg );
+ break;
+ }
+}
+
int main(int argc, char **argv)
{
SALOME_Event::GetSessionThread();
ORB_INIT &init = *SINGLETON_<ORB_INIT>::Instance() ;
int orbArgc = 1;
CORBA::ORB_var &orb = init( orbArgc , argv ) ;
- LocalTraceCollector *myThreadTrace = LocalTraceCollector::instance(orb);
+ SALOMETraceCollector *myThreadTrace = SALOMETraceCollector::instance(orb);
+ qInstallMsgHandler( MessageOutput );
try
{
CORBA::Object_var obj = orb->resolve_initial_references("RootPOA");
}
catch(std::exception& e)
{
- INFOS("run(): An exception has been caught");
+ INFOS("run(): An exception has been caught " <<e.what() );
QApplication::restoreOverrideCursor();
QAD_MessageBox::error1 ( (QWidget*)QAD_Application::getDesktop(),
QObject::tr("ERR_ERROR"),