[omniORB] omni_condition::~omni_condition

glblock at rockwellcollins.com glblock at rockwellcollins.com
Thu Mar 18 12:19:02 GMT 2004





All

OS = vxWorks
BRD = powerpc

the destructor for the omni_condition ( sema_ ) is being trashed and
exceptions are being thrown on the destructor.

This usually occurs when doing the following.

   CosNaming::Name name;
   // register with Naming Service
   name.length(1);
   name[0].id = CORBA::string_dup("MyName");
   name[0].kind = CORBA::string_dup("");
   try
   {
      rootContext->bind_new_context(name);
   }
   catch (...)
   {
            ok here....never gets here..
    }


   // register   with Naming Service
   name.length(2);
   name[1].id = CORBA::string_dup("MyManager");
   name[1].kind = CORBA::string_dup("");
   try
   {
      rootContext->rebind(name, theManager);
   }
   catch (...)
   {
      This succeeds to this point but the item that throws the error will
be the omni_condition destructor ??
  }

 exception occurs here after the above.... the sema_  value seems to be
trashed and the semDelete is where the exception bubbles up from.


Thanks

Gary




More information about the omniORB-list mailing list