View Single Post
  #1 (permalink)  
Old 11-24-2005
litghost litghost is offline
Registered User
 
Name: Keith Rothman
Organization: Cal Poly Aero
Project: Flight Simulator
 
Join Date: Oct 2005
Posts: 11
Properly shutting ICE down.

I have embedded ICE in a MATLAB Simulink S-Function, and seem to be having trouble shutting it down properly. What must be done to shutdown/destroy an ICE implimentation. Current I destory the object that holds the pointers for the proxy ObjectPtx and the Prx and Ptr for a publisher and a subscribe for IceStorm, and call shutdown and destory on my Ice::CommunicatorPtr, and destory it's containing object. I still get:
Quote:
warning: The communicator is not the last Ice object that is
deleted. (You can disable this warning by setting the
property `Ice.Warn.Leaks' to 0.)
What else should be done?

Another question, say I have an IceStorm interface that may or may not be bound to a proxy/adapter/topic. How do I check if it is instantiated, and if it has been how do I switch topics "cleanly"?

Another question, do I need a proxy for each subscriber? What if I have two different interfaces, can they be on the same proxy? Same adapter? Do Ice::ObjectAdapterPtr and IceStorm::TopicPrx objects need to stay around for the subscribers to function?
__________________
Keith Rothman
Cal Poly University Flight Simulation Laboratory

Last edited by litghost : 11-24-2005 at 02:08 AM.
Reply With Quote