summaryrefslogtreecommitdiff
path: root/TAO/tests/AMH_Exceptions/server.cpp
diff options
context:
space:
mode:
authormayur <mayur@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-07-08 18:16:01 +0000
committermayur <mayur@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-07-08 18:16:01 +0000
commit72e7fdafcc0faf96ee1348ad21afaaf041dab299 (patch)
treea7bbc4be49722bdf180d5df3339a0dc4aa7bb225 /TAO/tests/AMH_Exceptions/server.cpp
parenta4e0e3726b5828b25c6f7acc5dde2a74ae46dc2f (diff)
downloadATCD-72e7fdafcc0faf96ee1348ad21afaaf041dab299.tar.gz
Mon Jul 8 11:05:44 2002 Mayur Deshpande <mayur@ics.uci.edu>
Diffstat (limited to 'TAO/tests/AMH_Exceptions/server.cpp')
-rw-r--r--TAO/tests/AMH_Exceptions/server.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/TAO/tests/AMH_Exceptions/server.cpp b/TAO/tests/AMH_Exceptions/server.cpp
index 7914d6aff69..459ba559681 100644
--- a/TAO/tests/AMH_Exceptions/server.cpp
+++ b/TAO/tests/AMH_Exceptions/server.cpp
@@ -94,7 +94,7 @@ public:
protected:
int *argc_;
char **argv_;
- static char *ior_output_file_;
+ char *ior_output_file_;
CORBA::ORB_var orb_;
PortableServer::POA_var root_poa_;
@@ -110,16 +110,17 @@ private:
#include "ace/Get_Opt.h"
#include "tao/Strategies/advanced_resource.h"
-char *ST_AMH_Server::ior_output_file_ = (char *) "test.ior";
-
ST_AMH_Server::ST_AMH_Server (int* argc, char **argv)
: argc_ (argc)
, argv_ (argv)
+ , ior_output_file_ (ACE_OS::strdup ("test.ior"))
{
}
ST_AMH_Server::~ST_AMH_Server ()
{
+ delete this->ior_output_file_;
+
ACE_TRY_NEW_ENV
{
this->root_poa_->destroy (1, 1 TAO_ENV_ARG_PARAMETER);
@@ -133,6 +134,7 @@ ST_AMH_Server::~ST_AMH_Server ()
ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "Exception caught:");
}
ACE_ENDTRY;
+
}
int