[orbitcpp-list] two rookie questions: initialization, object validation
Status: Beta
Brought to you by:
philipd
From: <la...@se...> - 2000-11-30 17:16:40
|
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. 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. Any elightenment appreciated. Thanks, -Lance. -- -=+=--=+=--=+=--=+=--=+=--=+=--=+=--=+=--=+=--=+=--=+=--=+=- Lance Welsh la...@se... Seascape Communications (650) 327-6890 -=+=--=+=--=+=--=+=--=+=--=+=--=+=--=+=--=+=--=+=--=+=--=+=- |