Re: [orbitcpp-list] two rookie questions: initialization, object validation
Status: Beta
Brought to you by:
philipd
From: Phil D. <ph...@us...> - 2000-12-02 09:59:01
|
Hi Lance, la...@se... writes: > First, is it possible to check if orit has already been initialized? > Calling orb =CORBA::ORB_init(argc, argv, "orbit-local-orb") > more than once crashes. For now, I will keep a local flag. > Err.. not on my machine it doesn't. Which version of orbitcpp / ORBit are you running. > Perhaps more importanly, if the server has gone down, what > is the best way for the client to avoid hanging or crashing on > subsequent calls to that server? Is there a way to validate > the object such as objectPointer->isWorking() or even > objectPointer->wontHang(). Perhaps I can embed and > catch an alarm signal before each client call. > I'm not sure about this one. If orbit is unable to connect to the server you get a CORBA::COMM_FAILURE system exception. However if ORBit has previously connected to the server then you do seem to get a hang. I'll do some experimenting over the weekend... Cheers, Phil |