[omniORB] Extracting object ref. from TypeAny
Duncan Grisby
dgrisby@uk.research.att.com
Mon, 11 Feb 2002 12:38:05 +0000
On Tuesday 29 January, humbein@gmx.de wrote:
> Hence I tried something like:
> EventData_ptr event; //ok
> data >>= event; //ok
> cout << (*event).id() << "|" << (*event).value() << endl; //error
>
> The runtime error that comes up is "omniORB: ERROR -- the
> application attempted to invoke an operation on a nil reference."
The object reference stored in the Any must have been a nil object
reference. Check the code that inserts it.
Cheers,
Duncan.
--
-- Duncan Grisby \ Research Engineer --
-- AT&T Laboratories Cambridge --
-- http://www.uk.research.att.com/~dpg1 --