[omniORB] Problems with FreeLibrary() and omniORB.

Bruce Visscher visschb@rjrt.com
Wed, 27 Oct 1999 17:55:36 -0400



Mike Bendickson wrote:
> 
> Hi Bruce,
> 
> Thanks for the reply.  I should have probably provided some code.  This is
> the client side only, so I don't think that applies.  I'll throw it in
> though and see what happens.

Then I guess impl_shutdown won't do you any good.  (Don't forget that
even on the client side you need to call impl_is_ready if you have any
callbacks.)

Ken Feuerman wrote:
> 
> Searching for clarification.....
> 
> If (in omniORB2.8.0) ORB initialization consists of:
> 
> orb = CORBA::ORB_init(...);
> boa = orb->BOA_init(....);
> boa->impl_is_ready(0, 1);
> 
> Should ORB finalization consist of:
> 
> boa->impl_shutdown();
> boa->destroy();
> orb->NP_destroy();   /* omniORB specific */
> 
> Is this correct?

Oops, I forgot about those.  Yes, I think Ken is correct and what Mike
needs to do is call boa->destroy() and orb->NP_destroy().

In fact, I'm thinking that these were specifically added (at least in
part) for the sake of DLLs on NT.  (Steve, you should have answered this
one:).)

Bruce