summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpradeep <pradeep@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-09-24 17:26:36 +0000
committerpradeep <pradeep@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-09-24 17:26:36 +0000
commit735b5a3d9d8a54feb9cff9acd549af3917ddc26c (patch)
treea3f8cdf151ceac47afde5bdc43ea4f76ee49dc37
parent3a33d999b4d1b2bc7500710e6cb543d000fe2b25 (diff)
downloadATCD-735b5a3d9d8a54feb9cff9acd549af3917ddc26c.tar.gz
*** empty log message ***
-rw-r--r--TAO/orbsvcs/examples/CosEC/Factory/FactoryDriver.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/TAO/orbsvcs/examples/CosEC/Factory/FactoryDriver.cpp b/TAO/orbsvcs/examples/CosEC/Factory/FactoryDriver.cpp
index 4846a36ea71..804be33b1dc 100644
--- a/TAO/orbsvcs/examples/CosEC/Factory/FactoryDriver.cpp
+++ b/TAO/orbsvcs/examples/CosEC/Factory/FactoryDriver.cpp
@@ -51,14 +51,6 @@ FactoryDriver::parse_args (int argc, char *argv [])
int
FactoryDriver::start (int argc, char *argv [])
{
- if (this->parse_args (argc, argv) == -1)
- return -1;
-
- // Ref counted servants are on the heap..
- ACE_NEW_RETURN (factory_servant_,
- TAO_CosEventChannelFactory_i (),
- -1);
-
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
@@ -68,6 +60,14 @@ FactoryDriver::start (int argc, char *argv [])
ACE_TRY_ENV);
ACE_TRY_CHECK;
+ if (this->parse_args (argc, argv) == -1)
+ return -1;
+
+ // Ref counted servants are on the heap..
+ ACE_NEW_RETURN (factory_servant_,
+ TAO_CosEventChannelFactory_i (),
+ -1);
+
CORBA::Object_var poa_object =
orb_->resolve_initial_references("RootPOA",
ACE_TRY_ENV);