[omniORB] OmniOrb starting problem

Stefan Naewe stefan.naewe at atlas.de
Fri Mar 23 13:24:53 GMT 2007


On 3/23/2007 12:47 PM, Duncan Grisby wrote:
> On Monday 12 March, "Po Geng" wrote:
> 
>> My name is Po Geng and I am a developer at Seismic Micro Technology,
>> Inc. I am working on (RC)2 which is a geological modeling software using
>> OmniOrb. Recently, I ran into a problem. If we unplug the network
>> connection, the application failed to start. The reason is that in
>> tcpaddress.cc:
>>
>> 	rc = getpeername(sock, (struct sockaddr*)&peer, &len);
>>
>> Return rc==RC_SOCKET_ERROR.
>>
>> If I re-plug network, everything is OK. 
> 
> On some Windows installs (are you using Windows?), removing a network
> cable can completely remove the TCP stack from the machine, which
> prevents omniORB from starting up. You can change that behaviour with a
> registry setting that eludes me at the moment.

>From one of our README.txt's:
-----------------------------------------------------------------------
- Under XP its recommended to Disable Media Sense for TCP/IP:
    see http://support.microsoft.com/default.aspx?scid=kb;en-us;Q239924
  Use Registry Editor (Regedt32.exe) to view the following key in the registry:
    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters
  Add the following registry value:
    Value Name: DisableDHCPMediaSense
    Data Type : REG_DWORD -Boolean
    Value Data: 1
  Restart your computer.
- Under XP if started without network cable its recommended to install Microsoft Loopback Adapter:
    see http://support.microsoft.com/default.aspx?scid=kb;en-us;Q825089
  To install the Microsoft Loopback Adapter, follow these steps:
    Click Start, point to Control Panel, and then click Add Hardware.
    Click Next.
    Click Yes, I have already connected the hardware.
    In the Installed hardware list, click Add a new hardware device, and then click Next.
    Click Install the hardware that I manually select from a list (Advanced), and then click Next.
    In the Common hardware types list, click Network adapters, and then click Next.
    In the Manufacturer box, click Microsoft, in the Network Adapter list, click Microsoft Loopback Adapter, and then
click Next.
    Click Finish.
  Restart your computer.
-----------------------------------------------------------------------

I guess that should make it into the documentation somehow !?


Stefan



More information about the omniORB-list mailing list