[omniORB] Is this a Bug in OmniORB??

S. Sahayaraj ssahayaraj@quark.co.in
Wed Aug 7 13:49:01 2002


For example, If I return the "CORBA::string_dup(0)" as the NULL value for
char* return type. I'm getting the following error message

omniORB: Application check failed. This indicates a bug in the application
 using omniORB.  See the comment in the source code for more info.
 file: e:\my dms\omniorb 4\include\omniorb4\cdrstream.h
 line: 416
 info: s
 
Vivek - I tried Object::_nil() also. Still problem is alive. 


-----Original Message-----
From: Vivek Aggarwal [mailto:vaggarwal@gatwick.westerngeco.slb.com]
Sent: Wednesday, August 07, 2002 4:40 PM
To: S. Sahayaraj
Subject: Re: [omniORB] Is this a Bug in OmniORB??


You should never return NUL for any value/data type.
You should return Object::_nil() .
In other cases like lists, you should return blank list instead of NULL.
"S. Sahayaraj" wrote:

> All,
>
> I'm getting the exception if I returned the "NULL" value instead of actual
> value from the function.
>  For example,
>         The function signature would be like this :
>                 Object getValue(int objectID),
>
>         but the actual implementation looks like as follows :
>                 Object getValue(int objectID)
>                 {
>                         return NULL; // It creates the problem while
> marshalling.
>                 }
>
>         It gives the system exception while marshalling the returned
"NULL"
> value. Is anybody have any idea?.
>
> --Sahay.
>
>
> _______________________________________________
> omniORB-list mailing list
> omniORB-list@realvnc.com
> http://www.realvnc.com/mailman/listinfo/omniorb-list