tab+enter... problem in gmail...<br>anyway, the shown code results in:<br><br>kind: 14<br>omniORB: Assertion failed. This indicates a bug in the application<br>using omniORB, or maybe in omniORB itself.<br> file: any.cc<br>
line: 381<br> info: kind == CORBA::tk_void || kind == CORBA::tk_null<br>terminate called after throwing an instance of 'omniORB::fatalException'<br>Aborted<br><br>but using a nil object reference in an any is allowed isn't it?
<br><br><div><span class="gmail_quote">On 2/28/07, <b class="gmail_sendername">renej</b> <<a href="mailto:renej.frog@gmail.com">renej.frog@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
the following code fails:<br><br>#include <iostream> <br>#include <omniORB4/CORBA.h> <br>using namespace std; <br>int main() {<br> CORBA::Any any; <br> any <<= CORBA::Object::_nil(); <br>
cout << "kind: " <<
any.type()->kind() << endl; <br> CORBA::Object_ptr objPtr;<br> any >>= objPtr;<br><br> cdrStream *cdr = new cdrMemoryStream();<br> any >>= *cdr;<br><br> return 0; }<br><br>
</blockquote></div><br>