[omniORB] delete corba object

Boris Khanales boris@imagine-sw.com
ri, 11 Sep 1998 09:38:33 -0400


> I'm using omniORB 2.5.0.
> 
> I need to destroy an corba object after utilization but the system
> return runtime 
> ../object.cc:742: failed assertion `0'
> Abort (core dumped)
> 
> The code id:
> 
> 
> mediator_impl *myobj = new mediator_impl(_this());
> myobj->_obj_is_ready(boa);
> boa  -> impl_is_ready(0,1);                     
> 
> //.....  Code to utilize myobj
> 
> mediator_impl -> _dispose();
> delete myobj;
> 

Should you even call 
delete myobj
?

Objects are count referenced, after you call
boa->_dispode(myobj) it should release memory.


> Any one have any idea???
> 
> Thx
> 
> Nicola Drago
> 
> http://cesare.sci.univr.it/
>