Hello,
I have a crash in my Initiator when I call the stop().
My platform is Win2K + VC6 + QF 1.12.2.
It happened if the initiator can't establish a connection.
Actually the problem is in Initiator.cpp in some places the result of
Session::lookupSession is not checking for NULL.
Here is an example:
void Initiator::connect()
{ QF_STACK_PUSH(Initiator::connect)
Locker l(m_mutex);
SessionIDs disconnected = m_disconnected;
SessionIDs::iterator i = disconnected.begin();
for ( ; i != disconnected.end(); ++i )
{
Session* pSession = Session::lookupSession( *i );
if ( pSession->isEnabled() && pSession->isSessionTime() )
// fix: if (pSession && pSession->isEnabled() &&
pSession->isSessionTime() )
doConnect( *i, m_settings.get( *i ));
}
QF_STACK_POP
}
--
Regards,
Alexey Zubko
|