• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to destroy an instance of CORBA component?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 472
Objective C Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic