summaryrefslogtreecommitdiff
path: root/TAO/tests/Two_Objects/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Two_Objects/client.cpp')
-rw-r--r--TAO/tests/Two_Objects/client.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/TAO/tests/Two_Objects/client.cpp b/TAO/tests/Two_Objects/client.cpp
index d93a387409a..aedd4b27658 100644
--- a/TAO/tests/Two_Objects/client.cpp
+++ b/TAO/tests/Two_Objects/client.cpp
@@ -44,7 +44,6 @@ main (int argc, char *argv[])
// Initialize the ORB
CORBA::ORB_var orb =
CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
// Parse the arguments
if (parse_args (argc, argv) != 0)
@@ -55,13 +54,11 @@ main (int argc, char *argv[])
// object.
CORBA::Object_var tmp =
orb->string_to_object(ior ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
// Narrow the object reference to the appropriate type
Two_Objects_Test::Object_Factory_var factory =
Two_Objects_Test::Object_Factory::_narrow(tmp.in ()
ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
if (CORBA::is_nil (factory.in ()))
{
@@ -79,20 +76,17 @@ main (int argc, char *argv[])
second = factory->create_second();
// Call the oneway method
- first->oneway_method (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ first->oneway_method ();
ACE_DEBUG ((LM_DEBUG, "Client : one way call done\n"));
Two_Objects_Test::Octet_Seq_var reply_seq =
- second->twoway_method (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ second->twoway_method ();
ACE_DEBUG ((LM_DEBUG, "Client : length of returned data is %d\n",
reply_seq->length() ));
- orb->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ orb->destroy ();
}
ACE_CATCHANY
{