Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

funny(?) poa behavior

Status
Not open for further replies.

sog12

Programmer
Jul 15, 2001
6
IL
hi all,
i have a servant that is activated in a default policies poa.
when a the client invokes the destroy() request of that servant's reference, there is an amazing bug -
a ServantNotActive exception is thrown.
how can a servant be inactive if he just got a request from a client?

the code for deactivation is as follows:
Code:
PortableServer::ObjectId_var oid = m_poa->servant_to_id(this);//the exception is thrown here
m_poa->deactivate_object(oid);
(of course the poa is the same one used to activate and create the reference)

any clue?
Thanx,
oren.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top