Hello,

I've not seen such problem, but your email does not contain all the needed information. For example you don't mention if the process hangs forever or you've seen it running again. Also in such cases you need to describe your platform in more details and also your concurrency models settings. The best option is if you provide simple as possible example which duplicates your issue.

Cheers,
Karel
--
Karel Gardas                  [EMAIL PROTECTED]
ObjectSecurity Ltd.           http://www.objectsecurity.com
---
Need experienced, fast, reliable technical MICO support?
---> http://www.objectsecurity.com/mico_commsup_referral.html <---
---

On Fri, 10 Mar 2006, Swinnerton, James (UK) wrote:


Has anybody come across this problem? I have multiple process running on a single platform. Each process also has anumber of threads running. Each one is registered via the naming service and therefore conatctable by any other thread. However at some point one process will hang for a significant period while trying to resolve the NamingContext. The command hanging is "mObj = mNc->resolve (mName);". See below:



CORBA::Object_var* mpNsObj;
CosNaming::NamingContext_var mNc;
string mHostLoc = "corbaloc::";
CORBA::Object_var mObj;
mpNsObj = new CORBA::Object_var;
(*mpNsObj) = Orb->resolve_initial_references ("NameService");

try
{
   mNc = CosNaming::NamingContext::_narrow (*mpNsObj);
}
catch (CORBA::SystemException_catch& ex1 )
{
..... //some failure
}

if (CORBA::is_nil (mNc))
{
        exit (1);
}
CosNaming::Name mName;
mName.length (1);
mName[0].id = CORBA::string_dup (aName.c_str() );
mName[0].kind = CORBA::string_dup (aKind.c_str() );
try
{
        mObj = mNc->resolve (mName);
}
catch (CORBA::SystemException_catch &_ex )
{
        ....
}
catch (CosNaming::NamingContext::NotFound &exc)
{
        ....
}
catch (CosNaming::NamingContext::CannotProceed &exc)
{
        ....
}
catch (CosNaming::NamingContext::InvalidName &exc)
{
        ....
}

Any ideas appreciated.

Cheers,
James Swinnerton

********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************


_______________________________________________
Mico-devel mailing list
[email protected]
http://www.mico.org/mailman/listinfo/mico-devel


--
Karel Gardas                  [EMAIL PROTECTED]
ObjectSecurity Ltd.           http://www.objectsecurity.com
_______________________________________________
Mico-devel mailing list
[email protected]
http://www.mico.org/mailman/listinfo/mico-devel

Reply via email to