diff options
author | bala <balanatarajan@users.noreply.github.com> | 2001-03-08 18:43:54 +0000 |
---|---|---|
committer | bala <balanatarajan@users.noreply.github.com> | 2001-03-08 18:43:54 +0000 |
commit | a3f118b02528a9cfbde19db14752734a21d90833 (patch) | |
tree | 9f6e0af3bcd27fb862ced79acd093234e5060034 /TAO/examples/Simple/echo/Echo_i.cpp | |
parent | 19b2fef01a6d6b2df7e39d48aac2379804724a78 (diff) | |
download | ATCD-a3f118b02528a9cfbde19db14752734a21d90833.tar.gz |
ChangeLogTag: Thu Mar 8 12:39:21 2001 Balachandran Natarajan <bala@cs.wustl.edu>
Diffstat (limited to 'TAO/examples/Simple/echo/Echo_i.cpp')
-rw-r--r-- | TAO/examples/Simple/echo/Echo_i.cpp | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/TAO/examples/Simple/echo/Echo_i.cpp b/TAO/examples/Simple/echo/Echo_i.cpp index 4ccb450bbfe..2cb23214cbb 100644 --- a/TAO/examples/Simple/echo/Echo_i.cpp +++ b/TAO/examples/Simple/echo/Echo_i.cpp @@ -34,7 +34,7 @@ Echo_i::orb (CORBA::ORB_ptr o) Echo::List * Echo_i::echo_list (const char *message, - CORBA::Environment &) + CORBA::Environment &ACE_TRY_ENV) ACE_THROW_SPEC ((CORBA::SystemException)) { ACE_UNUSED_ARG (message); @@ -48,9 +48,19 @@ Echo_i::echo_list (const char *message, list->length (3); // Just do something to get a list of object references. - (*list)[0] = orb_->resolve_initial_references ("NameService"); - (*list)[1] = orb_->resolve_initial_references ("NameService");; - (*list)[2] = orb_->resolve_initial_references ("NameService");; + (*list)[0] = + orb_->resolve_initial_references ("NameService", + ACE_TRY_ENV); + ACE_CHECK; + + (*list)[1] = + orb_->resolve_initial_references ("NameService", + ACE_TRY_ENV);; + ACE_CHECK; + (*list)[2] = + orb_->resolve_initial_references ("NameService", + ACE_TRY_ENV); + ACE_CHECK; return list; } |