[omniORB] Re: bug in nil object reference in any?

renej renej.frog at gmail.com
Wed Feb 28 15:06:08 GMT 2007


tab+enter... problem in gmail...
anyway, the shown code results in:

kind: 14
omniORB: Assertion failed.  This indicates a bug in the application
using omniORB, or maybe in omniORB itself.
 file: any.cc
 line: 381
 info: kind == CORBA::tk_void || kind == CORBA::tk_null
terminate called after throwing an instance of 'omniORB::fatalException'
Aborted

but using a nil object reference in an any is allowed isn't it?

On 2/28/07, renej <renej.frog at gmail.com> wrote:
>
> the following code fails:
>
> #include <iostream>
> #include <omniORB4/CORBA.h>
> using namespace std;
> int main() {
>     CORBA::Any any;
>     any <<= CORBA::Object::_nil();
> cout << "kind: " << any.type()->kind() << endl;
>     CORBA::Object_ptr objPtr;
>     any >>= objPtr;
>
>     cdrStream *cdr = new cdrMemoryStream();
>     any >>= *cdr;
>
>     return 0; }
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20070228/418b634c/attachment.htm


More information about the omniORB-list mailing list