summaryrefslogtreecommitdiff
path: root/TAO/DevGuideExamples/ValueTypes/Bank/server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/DevGuideExamples/ValueTypes/Bank/server.cpp')
-rw-r--r--TAO/DevGuideExamples/ValueTypes/Bank/server.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/TAO/DevGuideExamples/ValueTypes/Bank/server.cpp b/TAO/DevGuideExamples/ValueTypes/Bank/server.cpp
index b6f092d0187..47fbffe5365 100644
--- a/TAO/DevGuideExamples/ValueTypes/Bank/server.cpp
+++ b/TAO/DevGuideExamples/ValueTypes/Bank/server.cpp
@@ -79,10 +79,10 @@ int ACE_TMAIN (int ac, ACE_TCHAR* av[]) {
PortableServer::POAManager_var poaman = poa->the_POAManager();
- Transaction_i svt;
+ PortableServer::Servant_var<Transaction_i> svt = new Transaction_i;
{
- PortableServer::ObjectId_var id = poa->activate_object(&svt);
+ PortableServer::ObjectId_var id = poa->activate_object(svt.in());
obj = poa->id_to_reference(id.in());
CORBA::String_var ior = orb->object_to_string(obj.in());
write_ior(ior.in());
@@ -94,7 +94,7 @@ int ACE_TMAIN (int ac, ACE_TCHAR* av[]) {
orb->run();
- poa->destroy(1, 1);
+ poa->destroy(true, true);
orb->destroy();
return 0;