<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><DIV>Hi,</DIV>
<DIV> </DIV>
<DIV>Please provide me informations about how can I post on omniORB list.</DIV>
<DIV>My email address is : marin.bogdan at yahoo . com</DIV>
<DIV> </DIV>
<DIV>My question is:</DIV>
<DIV> </DIV>
<DIV>When trying to get poa manager and activate it, my CORBA app is crashing with a strange error:</DIV>
<DIV> </DIV>
<DIV><FONT size=2>
<P>CORBA::ORB_var orb = _globalORB->GetORB();</P>
<P>CORBA::Object_var tmpRef = orb->resolve_initial_references( </FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"RootPOA"</FONT></FONT><FONT size=2> );</P>
<P>_rootPOA = PortableServer::POA::_narrow( tmpRef );</P>
<P> </P></FONT></DIV>
<DIV><FONT size=2>
<P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>if</FONT></FONT><FONT size=2> ( CORBA::is_nil( _rootPOA ))</P>
<P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>return</FONT></FONT><FONT size=2>( 0 );</P></FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>
<P><STRONG>_rootPOAManager = _rootPOA->the_POAManager();</STRONG> // <--- here it crashes on operator = </P>
<P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>if</FONT></FONT><FONT size=2> ( CORBA::is_nil( _rootPOAManager ))</P>
<P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>return</FONT></FONT><FONT size=2>( 0 );</P>
<P></P>
<P>_rootPOAManager->activate();</P>
<P> </P>
<P> </P>
<P>_rootPoaManager si declared as:</P>
<P> </P><FONT size=2>
<P>PortableServer::POAManager_var _rootPOAManager;</P></FONT>
<P> </P>
<P>omniNames is running and the application is builded with Visual Studio 7 and linking with the build for VS7, debug versions</P>
<P> </P>
<P>Here it is the stack:</P>
<P> </P>
<P>> libcorbasrv_2k.dll!CORBA::Object<STRONG>::_NP_is_nil</STRONG>() Line 116 + 0xc C++<BR> libcorbasrv_2k.dll!CORBA::release(CORBA::Object * o=0xffffffe8) Line 155 + 0xe C++<BR> libcorbasrv_2k.dll!_CORBA_PseudoObj_Var<PortableServer::POAManager>::operator=(PortableServer::POAManager * p=0x00759ad8) Line 82 + 0xb C++<BR> libcorbasrv_2k.dll!MyGlobalORB::Init(int argc=8, char * * argv=0x00d46cb0, const char * OrbName=0x00e09b08) Line 158 C++</P>
<P> </P>
<P> </P><FONT size=2>
<P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>inline</FONT></FONT><FONT size=2> Boolean <STRONG>_NP_is_nil</STRONG>() </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>const</FONT></FONT><FONT size=2> { </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>return</FONT></FONT><FONT size=2> pd_obj == 0; } //pd_object has bad address..but why?</P></FONT>
<P> </P>
<P>I suspect that this a problem of configuring omniORB. Can you tell me what am I missing?</P>
<P><BR> </P></FONT></DIV>
<DIV> </DIV>
<DIV>Thank you,</DIV>
<DIV>Bogdan Marin</DIV><!-- cg4.c902.mail.ac4.yahoo.com compressed/chunked Tue Dec 1 23:21:33 PST 2009 --></div><br>
</body></html>