[omniORB] OMNIORB 2.8.0: UNKNOWN Exception???

Duncan Grisby dgrisby@uk.research.att.com
Fri, 21 Jan 2000 12:39:17 +0000


On Friday 21 January, Ismat Dhanjibhai wrote:

>    CORBA::SystemException caught in (your code location
> here): IDL:omg.org/CORBA/UNKNOWN

CORBA::UNKNOWN is thrown when the server side throws an exception
which is not either a user defined exception or a CORBA system
exception.

>   Slot myslot;
> 
>   myslot.slot = "Slot";
>   myslot.underSlot = "UnderSlot";
>   myslot.minterface = "minterface";
>   myslot.resource = "resource";
>   return &myslot;    // returning local address, bad, fix later
> }

omniORB will try to deallocate the Slot structure you return. Since
it's on the stack, that won't work very well. My guess is that the C++
runtime is throwing some sort of exception in response to your bug. If
you properly allocate the Slot structure on the heap, the exception
will probably go away.

Cheers,

Duncan.

-- 
 -- Duncan Grisby  \  Research Engineer  --
  -- AT&T Laboratories Cambridge          --
   -- http://www.uk.research.att.com/~dpg1 --