[omniORB] bug in nil object reference in any?

renej renej.frog at gmail.com
Wed Feb 28 15:04:18 GMT 2007


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/8a50dc71/attachment.htm


More information about the omniORB-list mailing list