[omniORB] nil object destruction

S. Sahayaraj ssahayaraj@quark.co.in
Tue Feb 11 06:16:01 2003


Hi Duncan,
	My ultimate aim is, like to have both destruction of nil objects and
to call the destroy(..) method. Both should be needed for me. I don't want
want to lose any one of them from omniORB. 

	I tried with following small changes in omniInternal.cc, then I
could see that its working fine and seems no crash as well. 

	I would like to have your feedback on this.

  for (; i != nilObjectList()->end(); i++, nils++)
  {
	*i = NULL; // Added this piece to avoid the crash that is happening
on next line. Duncan, what do say?.
	delete *i;
  }

Thanks
Sahay.



-----Original Message-----
From: Duncan Grisby [mailto:duncan@grisby.org]
Sent: Monday, February 10, 2003 5:00 PM
To: S. Sahayaraj
Cc: Omniorb list
Subject: Re: [omniORB] nil object destruction 


On Friday 7 February, "S. Sahayaraj" wrote:

> 	Instead of to not call orb->destroy(), Can we skip to destruct each
> nil object in the container?. 

Destruction of the nil objects was one of the most-requested features
for omniORB 4. There are plenty of people who want it. Those who
don't, and are happy for the OS to clear up ought to be happy to not
destroy the ORB, and let the OS clear that up too.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan@grisby.org     --
   -- http://www.grisby.org --
_______________________________________________
omniORB-list mailing list
omniORB-list@omniorb-support.com
http://www.omniorb-support.com/mailman/listinfo/omniorb-list