Hi,

we have problems when terminating a ClusterWindow with ConnectionType "Multicast"
(Windows 2000, ICL 7.1).
The application always throws an exception "sendto: WSAEADDR-NOTAVAIL" on termination of the
ClusterWindow.

The problem is in MulticastConnection::stopAliveThread:

void MulticastConnection::stopAliveThread()
{
    char tag;
    if(_aliveThread)
    {
        _stopAliveThread=true;
        DgramSocket s;
        s.open();
        s.sendTo(&tag,
                 sizeof(tag),
                 SocketAddress(_aliveSocket.getAddress()));

        BaseThread::join( _aliveThread );

//!!        ThreadManager::the()->removeThread(_aliveThread);

        _aliveThread=0;
        if(_aliveSocket.waitReadable(0))
            _aliveSocket.recv(&tag,sizeof(tag));
        s.close();
    }
}

The address
SocketAddress(_aliveSocket.getAddress()) seems to be invalid :-(
Is this a known problem?

Thanks,
Christoph


Reply via email to