Click here to Skip to main content
16,004,479 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Client hangs while trying to narrow reference

Following is the code at server side:

C#
Vito::Int8Helper URLHelper1 = m_dnControlServiceURLs[m_iURLIndex].toUTF8();
CORBA::Object_var csgObj = vito::VitoNameServ::getInstance(m_eORBThreadPolicy)->getORB()->string_to_object(URLHelper1.get());
csgPtr = ControlServicePortal::_narrow (csgObj);
csgPtr->ping();
isExist = true;



What are the possibilities/cases where _narrow function will get hang?

Please reply asap.

Thanks in advance.
Posted
Comments
Stefan_Lang 16-Dec-13 7:29am    
Too little information. All we can see is that you have a client and a server that in some way communicate with each other.

You say that the client hangs, and posted the server-side code in the assumption that it somehow is responsible. How do you know it's not a problem on the client side? How do you know it's even related to the communication?

OTOH, if the naging client is related to the communication, why do you think the server code helps identifiying the problem? Much more likely the client does a blocking wait on something it expects from the server. Even if there is a problem on the server that prevents the sending of said message, the client shouldn't block: the server may not be able to respond for any kind of reason, and the client should be able to detect and report that, rather than wait endlessly.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900