summaryrefslogtreecommitdiff
path: root/TAO/tests/Nested_Upcall_Crash/client.cpp
diff options
context:
space:
mode:
authorelliott_c <elliott_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2007-01-25 18:17:52 +0000
committerelliott_c <elliott_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2007-01-25 18:17:52 +0000
commit2ee7b7eed4c0cc10f4ec25b186b04202af01b565 (patch)
tree08a8a649c90559cf5b2228c1caad15515902613e /TAO/tests/Nested_Upcall_Crash/client.cpp
parentc979767a00db4ea1299af482033a68829cc16675 (diff)
downloadATCD-2ee7b7eed4c0cc10f4ec25b186b04202af01b565.tar.gz
ChangeLogTag: Thu Jan 25 17:39:59 UTC 2007 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'TAO/tests/Nested_Upcall_Crash/client.cpp')
-rw-r--r--TAO/tests/Nested_Upcall_Crash/client.cpp38
1 files changed, 14 insertions, 24 deletions
diff --git a/TAO/tests/Nested_Upcall_Crash/client.cpp b/TAO/tests/Nested_Upcall_Crash/client.cpp
index 69d8a2a99bb..5af5dd41596 100644
--- a/TAO/tests/Nested_Upcall_Crash/client.cpp
+++ b/TAO/tests/Nested_Upcall_Crash/client.cpp
@@ -32,19 +32,16 @@ private:
int
main (int argc, char *argv[])
{
- ACE_TRY_NEW_ENV
+ try
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, ""
- ACE_ENV_ARG_PARAMETER);
+ CORBA::ORB_init (argc, argv, "");
CORBA::Object_var poa_object =
- orb->resolve_initial_references("RootPOA"
- ACE_ENV_ARG_PARAMETER);
+ orb->resolve_initial_references("RootPOA");
PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (poa_object.in ()
- ACE_ENV_ARG_PARAMETER);
+ PortableServer::POA::_narrow (poa_object.in ());
if (CORBA::is_nil (root_poa.in ()))
ACE_ERROR_RETURN ((LM_ERROR,
@@ -55,10 +52,10 @@ main (int argc, char *argv[])
root_poa->the_POAManager ();
CORBA::Object_var object =
- orb->resolve_initial_references ("PolicyCurrent" ACE_ENV_ARG_PARAMETER);
+ orb->resolve_initial_references ("PolicyCurrent");
CORBA::PolicyCurrent_var policy_current =
- CORBA::PolicyCurrent::_narrow (object.in () ACE_ENV_ARG_PARAMETER);
+ CORBA::PolicyCurrent::_narrow (object.in ());
if (CORBA::is_nil (policy_current.in ()))
{
@@ -71,11 +68,9 @@ main (int argc, char *argv[])
CORBA::PolicyList policies(1); policies.length (1);
policies[0] =
orb->create_policy (Messaging::SYNC_SCOPE_POLICY_TYPE,
- scope_as_any
- ACE_ENV_ARG_PARAMETER);
+ scope_as_any);
- policy_current->set_policy_overrides (policies, CORBA::ADD_OVERRIDE
- ACE_ENV_ARG_PARAMETER);
+ policy_current->set_policy_overrides (policies, CORBA::ADD_OVERRIDE);
policies[0]->destroy ();
@@ -92,12 +87,10 @@ main (int argc, char *argv[])
impl->_this ();
CORBA::Object_var tmp =
- orb->string_to_object(ior
- ACE_ENV_ARG_PARAMETER);
+ orb->string_to_object(ior);
Test::Peer_var peer =
- Test::Peer::_narrow(tmp.in ()
- ACE_ENV_ARG_PARAMETER);
+ Test::Peer::_narrow(tmp.in ());
if (CORBA::is_nil (peer.in ()))
{
@@ -116,22 +109,19 @@ main (int argc, char *argv[])
reactor->schedule_timer(&timer, 0, interval, interval);
ACE_Time_Value run_time(120, 0);
- orb->run (run_time ACE_ENV_ARG_PARAMETER);
+ orb->run (run_time);
ACE_DEBUG ((LM_DEBUG, "(%P|%t) client - event loop finished\n"));
- root_poa->destroy (1, 1
- ACE_ENV_ARG_PARAMETER);
+ root_poa->destroy (1, 1);
orb->destroy ();
}
- ACE_CATCHANY
+ catch (const CORBA::Exception& ex)
{
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Exception caught:");
+ ex._tao_print_exception ("Exception caught:");
return 1;
}
- ACE_ENDTRY;
return 0;
}