From 5feb2022bd4bd89185dde0a066c0dade42c79368 Mon Sep 17 00:00:00 2001 From: secher Date: Mon, 22 Nov 2004 10:07:48 +0000 Subject: [PATCH] take account of trace modification --- src/TestContainer/TestContainer.cxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/TestContainer/TestContainer.cxx b/src/TestContainer/TestContainer.cxx index 25eeed28b..a0a5d3f3a 100644 --- a/src/TestContainer/TestContainer.cxx +++ b/src/TestContainer/TestContainer.cxx @@ -39,6 +39,7 @@ #include "Utils_SINGLETON.hxx" #include "Utils_SALOME_Exception.hxx" #include "Utils_CommException.hxx" +#include "LocalTraceCollector.hxx" using namespace std; static ostream& operator<<(ostream& os, const CORBA::Exception& e) @@ -62,10 +63,13 @@ static ostream& operator<<(ostream& os, const CORBA::Exception& e) int main (int argc, char * argv[]) { + // Initializing omniORB + ORB_INIT &init = *SINGLETON_::Instance() ; + CORBA::ORB_var &orb = init( argc , argv ) ; + LocalTraceCollector *myThreadTrace = LocalTraceCollector::instance(orb); + try { - // Initializing omniORB - CORBA::ORB_var orb = CORBA::ORB_init(argc, argv); // use IOR to find container //if (argc != 2) { return 1; } @@ -221,6 +225,7 @@ int main (int argc, char * argv[]) INFOS("Caught unknown exception.") } + delete myThreadTrace; return 0; } -- 2.39.2