Less than 42 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to destroy an instance of CORBA component?  RSS feed

 
Michael Sadovskyy
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I create a CORBA component, perform some actions and then I need to destroy it. The question is, how to destroy this component and release all resources correctly at the end? It is important for me because now I have threads remaining in memory.

There are <shutdown> and <destroy> methods on org.omg.CORBA.ORB class but I am not sure that I should use them because I need to destroy a particular instance of a CORBA component…

More over, <destroy> method is not implemented in my version of visibroker at all.

Can anybody help me?

Thank you,

Michael
 
D Rog
Ranch Hand
Posts: 472
Linux Objective C Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you should use ORB.disconnect(orb_object), for an object you do not need anymore. It's quite important, since CORBA doesn't support garbage collection.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!