[omniORB] RE: Exception thrown when calling resolve_initial_r eferences

Byerly_John John.Byerly@marconi.com
Mon, 7 Aug 2000 13:42:54 -0500


I have solved my problem by rearranging the order of initialization of DLLs
in my code.

It appears that the DLL code calls resolve_initial_references before the
main executable code.  Removing the DLL from the load list has no effect
other an making the DLL unavailable.

I traced the call as deep as possible.  Here is the call stack:

GIOP_C::ReceiveReply() line 220
omniRemoteIdentity::dispatch(omniCallDescriptor & {...}) line 136 + 8 bytes
omniObjRef::_invoke(omniCallDescriptor & {...}, unsigned char 0) line 521
omniObjRef::_remote_is_a(const char * 0x67ee2d10) line 303
omniObjRef::_real_is_a(const char * 0x67ee2d10) line 137
omniObjRef::_realNarrow(const char * 0x67ee2d10) line 163 + 12 bytes
CosNaming::NamingContext::_narrow(CORBA::Object * 0x009dc390) line 504 + 21
bytes
MCORBAUtilities::RegisterWithNamingService(const CString & {"EventManager"},
CORBA::Object * 0x009dc698) line 444 + 26 bytes
DllMain(HINSTANCE__ * 0x00db0000, unsigned long 1, void * 0x00000000) line
56 + 118 bytes
_DllMainCRTStartup(void * 0x00db0000, unsigned long 1, void * 0x00000000)
line 273 + 17 bytes
NTDLL! 77f63565()
NTDLL! 77f6b5be()
NTDLL! 77f63b40()
KERNEL32! 77f13ad9()
KERNEL32! 77f137e6()
MSystem::LoadExtensions() line 374 + 73 bytes
MSystem::Initialize(CString {"D:\V1\Config"}) line 197
PMServerInit(unsigned long 6, unsigned short * * 0x009cb160) line 232 + 30
bytes
main(int 6, char * * 0x009cb1b0) line 398
mainCRTStartup() line 338 + 17 bytes

The call to ReceiveReply() was timing out (I think), which caused an
exception (Connection Broken) to be thrown.

I am not sure why this has happened, but I have a real short timeline, so I
don't have the luxury of trying to understand.  I suspect that a CORBA
object was not yet initialized when a call was made to it.

Thanks for your help!

JAB