1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#include "Simple.h" Simple::Simple () { } void Simple::destroy () { PortableServer::POA_var poa = this->_default_POA (); PortableServer::ObjectId_var oid = poa->servant_to_id (this); poa->deactivate_object (oid.in ()); }