From 2ee7b7eed4c0cc10f4ec25b186b04202af01b565 Mon Sep 17 00:00:00 2001 From: elliott_c Date: Thu, 25 Jan 2007 18:17:52 +0000 Subject: ChangeLogTag: Thu Jan 25 17:39:59 UTC 2007 Chad Elliott --- TAO/tests/Bug_1495_Regression/Client_Task.cpp | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'TAO/tests/Bug_1495_Regression/Client_Task.cpp') diff --git a/TAO/tests/Bug_1495_Regression/Client_Task.cpp b/TAO/tests/Bug_1495_Regression/Client_Task.cpp index d4454dac1d2..b9584834a8c 100644 --- a/TAO/tests/Bug_1495_Regression/Client_Task.cpp +++ b/TAO/tests/Bug_1495_Regression/Client_Task.cpp @@ -24,14 +24,13 @@ Client_Task::Client_Task (const char *input, int Client_Task::svc (void) { - ACE_TRY_NEW_ENV + try { CORBA::Object_var object = - corb_->string_to_object (input_ ACE_ENV_ARG_PARAMETER); + corb_->string_to_object (input_); Bug1495_Regression::Bug1495_var server = - Bug1495_Regression::Bug1495::_narrow (object.in () - ACE_ENV_ARG_PARAMETER); + Bug1495_Regression::Bug1495::_narrow (object.in ()); if (CORBA::is_nil (server.in ())) { @@ -48,7 +47,7 @@ Client_Task::svc (void) // call the thread_id function on the test object CORBA::Long remote_thread_id; - server->get_thread_id (remote_thread_id ACE_ENV_ARG_PARAMETER); + server->get_thread_id (remote_thread_id); ACE_DEBUG ((LM_INFO, "Remote thread ID was %i\n", @@ -73,13 +72,11 @@ Client_Task::svc (void) } } } - ACE_CATCHANY + catch (const CORBA::Exception& ex) { - ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, - "Caught exception in client task:"); + ex._tao_print_exception ("Caught exception in client task:"); return 1; } - ACE_ENDTRY; return 0; } -- cgit v1.2.1