Exception question



Hi all,

I have code along the lines of:

	read_obj = get_read_object(global_orb, ev);
	ABORT_IF_EXCEPTION(ev);
	if (CORBA_Object_is_nil(read_obj, ev)) {
		ABORT_IF_EXCEPTION(ev);
		g_warning("could not get read object reference"); 
		abort();
	}
	ABORT_IF_EXCEPTION(ev);

I assume that it is necessary to check for exception in both code paths
after the is_nil() call as the return value of is_nil() is unspecified
in the case of an exception. Is that right?


Thanks,
  jules


-- 
Jules Colding <JuBColding@yorkref.com>
York Refrigeration




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]