diff options
Diffstat (limited to 'TAO/orbsvcs/DevGuideExamples/EventServices/RTEC_Federated/EchoEventConsumerMain.cpp')
-rw-r--r-- | TAO/orbsvcs/DevGuideExamples/EventServices/RTEC_Federated/EchoEventConsumerMain.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/TAO/orbsvcs/DevGuideExamples/EventServices/RTEC_Federated/EchoEventConsumerMain.cpp b/TAO/orbsvcs/DevGuideExamples/EventServices/RTEC_Federated/EchoEventConsumerMain.cpp index 0383911fb6c..16fef65a5e0 100644 --- a/TAO/orbsvcs/DevGuideExamples/EventServices/RTEC_Federated/EchoEventConsumerMain.cpp +++ b/TAO/orbsvcs/DevGuideExamples/EventServices/RTEC_Federated/EchoEventConsumerMain.cpp @@ -65,8 +65,9 @@ int ACE_TMAIN (int argc, ACE_TCHAR *argv[]) // Instantiate an EchoEventConsumer_i servant and register it // with the RootPOA - EchoEventConsumer_i servant(orb.in(), supplier.in(), EVENT_LIMIT); - PortableServer::ObjectId_var oid = poa->activate_object(&servant); + PortableServer::Servant_var<EchoEventConsumer_i> servant = + new EchoEventConsumer_i(orb.in(), supplier.in(), EVENT_LIMIT); + PortableServer::ObjectId_var oid = poa->activate_object(servant.in()); CORBA::Object_var consumer_obj = poa->id_to_reference(oid.in()); RtecEventComm::PushConsumer_var consumer = RtecEventComm::PushConsumer::_narrow(consumer_obj.in()); |