diff options
author | cdgill <cdgill@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-06-29 02:42:50 +0000 |
---|---|---|
committer | cdgill <cdgill@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-06-29 02:42:50 +0000 |
commit | 372e0c8414b880d6d0513e1d541a35dbeedc79ef (patch) | |
tree | 81347e2680c855da988b73875fd26d09389f721b /TAO/orbsvcs/Dump_Schedule | |
parent | d5e55d3c698542fa4228ae65b3551edc84b63282 (diff) | |
download | ATCD-372e0c8414b880d6d0513e1d541a35dbeedc79ef.tar.gz |
fixed exception problems
Diffstat (limited to 'TAO/orbsvcs/Dump_Schedule')
-rw-r--r-- | TAO/orbsvcs/Dump_Schedule/Dump_Schedule.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/TAO/orbsvcs/Dump_Schedule/Dump_Schedule.cpp b/TAO/orbsvcs/Dump_Schedule/Dump_Schedule.cpp index 19c24641ebb..fb577f93764 100644 --- a/TAO/orbsvcs/Dump_Schedule/Dump_Schedule.cpp +++ b/TAO/orbsvcs/Dump_Schedule/Dump_Schedule.cpp @@ -14,12 +14,12 @@ ACE_RCSID(Dump_Schedule, Dump_Schedule, "$Id$") int main (int argc, char *argv[]) { - TAO_TRY + ACE_TRY_NEW_ENV { // Initialize ORB. CORBA::ORB_var orb = - CORBA::ORB_init (argc, argv, "internet", TAO_TRY_ENV); - TAO_CHECK_ENV; + CORBA::ORB_init (argc, argv, "internet", ACE_TRY_ENV); + ACE_TRY_CHECK; CORBA::Object_var poa_object = orb->resolve_initial_references("RootPOA"); @@ -29,12 +29,12 @@ main (int argc, char *argv[]) 1); PortableServer::POA_var root_poa = - PortableServer::POA::_narrow (poa_object.in(), TAO_TRY_ENV); - TAO_CHECK_ENV; + PortableServer::POA::_narrow (poa_object.in(), ACE_TRY_ENV); + ACE_TRY_CHECK; PortableServer::POAManager_var poa_manager = - root_poa->the_POAManager (TAO_TRY_ENV); - TAO_CHECK_ENV; + root_poa->the_POAManager (ACE_TRY_ENV); + ACE_TRY_CHECK; CORBA::Object_var naming_obj = orb->resolve_initial_references ("NameService"); @@ -44,8 +44,8 @@ main (int argc, char *argv[]) 1); CosNaming::NamingContext_var naming_context = - CosNaming::NamingContext::_narrow (naming_obj.in (), TAO_TRY_ENV); - TAO_CHECK_ENV; + CosNaming::NamingContext::_narrow (naming_obj.in (), ACE_TRY_ENV); + ACE_TRY_CHECK; const char *name = 0; if (argc > 1) @@ -77,28 +77,28 @@ main (int argc, char *argv[]) ACE_SCOPE_THREAD), ACE_Sched_Params::priority_max (ACE_SCHED_FIFO, ACE_SCOPE_THREAD), - infos_out, configs_out, anomalies_out, TAO_TRY_ENV); + infos_out, configs_out, anomalies_out, ACE_TRY_ENV); #else /* ! __SUNPRO_CC */ ACE_Scheduler_Factory::server ()->compute_scheduling (ACE_Sched_Params::priority_min (ACE_SCHED_FIFO, ACE_SCOPE_THREAD), ACE_Sched_Params::priority_max (ACE_SCHED_FIFO, ACE_SCOPE_THREAD), - infos.out (), configs.out (), anomalies.out (), TAO_TRY_ENV); + infos.out (), configs.out (), anomalies.out (), ACE_TRY_ENV); #endif /* ! __SUNPRO_CC */ - TAO_CHECK_ENV; + ACE_TRY_CHECK; - ACE_Scheduler_Factory::dump_schedule (infos.in (), + ACE_Scheduler_Factory::dump_schedule (infos.in (), configs.in (), anomalies.in (), "Scheduler_Runtime.cpp"); } - TAO_CATCH (CORBA::SystemException, sys_ex) + ACE_CATCHANY { - TAO_TRY_ENV.print_exception ("SYS_EX"); + ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "Dump_Schedule"); } - TAO_ENDTRY; + ACE_ENDTRY; return 0; } |