diff options
author | Phil Mesnier <mesnier_p@ociweb.com> | 2006-04-26 12:23:46 +0000 |
---|---|---|
committer | Phil Mesnier <mesnier_p@ociweb.com> | 2006-04-26 12:23:46 +0000 |
commit | 41e209078b941791507045cd069833a0fa5b0baa (patch) | |
tree | 39021df48537c75faaaed20bb397e9d5517457fc /TAO/tests/AMI/simple_client.cpp | |
parent | 54cf3cfe0fe64adc60c79c671db0b18dd6ea40ec (diff) | |
download | ATCD-41e209078b941791507045cd069833a0fa5b0baa.tar.gz |
ChangeLog tag: Wed Apr 26 12:20:51 UTC 2006 Phil Mesnier <mesnier_p@ociweb.com>
Diffstat (limited to 'TAO/tests/AMI/simple_client.cpp')
-rw-r--r-- | TAO/tests/AMI/simple_client.cpp | 40 |
1 files changed, 12 insertions, 28 deletions
diff --git a/TAO/tests/AMI/simple_client.cpp b/TAO/tests/AMI/simple_client.cpp index 61cf865ed31..2a22d5164ed 100644 --- a/TAO/tests/AMI/simple_client.cpp +++ b/TAO/tests/AMI/simple_client.cpp @@ -105,7 +105,6 @@ public: ACE_DEBUG ((LM_DEBUG, "... exception received successfully\n")); } - ACE_CATCHANY { ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "ERROR"); @@ -166,32 +165,6 @@ public: } }; -void do_smi_exception (A::AMI_Test_var &ami_test_var) -{ - try { - CORBA::Long l = 12345; - CORBA::Long number = ami_test_var->foo (l, - 0, - "Let's talk SMI." - ACE_ENV_ARG_PARAMETER); - if (debug) - { - ACE_DEBUG ((LM_DEBUG, - "Received the following number: %d\n", - number)); - } - } - catch (A::DidTheRightThing ex) { - ACE_DEBUG ((LM_DEBUG,"Synch catch: <%d> <%W>\n", - ex.id,ex.whatDidTheRightThing.in())); - ACE_HEX_DUMP((LM_DEBUG, - reinterpret_cast<char const *>(ex.whatDidTheRightThing.in()), - wcslen(ex.whatDidTheRightThing.in()) * sizeof(wchar_t) - )); - } -} - - int main (int argc, char *argv[]) { @@ -312,7 +285,18 @@ main (int argc, char *argv[]) // orb->perform_work (); - do_smi_exception(ami_test_var); + CORBA::Long number = ami_test_var->foo (l, + l, + "Let's talk SMI." + ACE_ENV_ARG_PARAMETER); + ACE_TRY_CHECK; + + if (debug) + { + ACE_DEBUG ((LM_DEBUG, + "Received the following number: %d\n", + number)); + } if (shutdown_flag) { |