[omniORB] OMNIORB 2.8.0: UNKNOWN Exception???

Ismat Dhanjibhai ismat@itmasters.com
Fri, 21 Jan 2000 14:10:21 +0100


This is a multi-part message in MIME format.
--------------824DA2DBFC5487B5007AF8BD
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Duncan

It was the stack allocation causing the exception.


Ismat


Duncan Grisby wrote:

> 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 --

--------------824DA2DBFC5487B5007AF8BD
Content-Type: text/x-vcard; charset=us-ascii;
 name="ismat.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Ismat Dhanjibhai
Content-Disposition: attachment;
 filename="ismat.vcf"

begin:vcard 
n:Dhanjibhai;Ismat
tel;fax:+32-16-39-64-74
tel;work:+32-16-39-64-47
x-mozilla-html:TRUE
url:http://www.itmasters.com/Products/MC/index.html
org:IT Masters
version:2.1
email;internet:ismat@itmasters.com
adr;quoted-printable:;;IT Masters s.a./n.v.=0D=0AGreenhill Campus=0D=0AInterleuvenlaan, 15C=0D=0A;Heverlee;;B-3001;Belgium
fn:Ismat Dhanjibhai
end:vcard

--------------824DA2DBFC5487B5007AF8BD--