Hi Joerg,
I can't get the stack trace because there is no thrown exception, seems to
be hanging or looping.
I pasted below some part of my code. In the function Disconnect(), it will
hand at m_initiator.stop();.
My QuickFix handling is wrap in a dll, made with C#, it is running under
win2k. The case happen when I connect, and then disconnect. If I only
disconnect, then m_initiator.stop(); does not hang.
I saw that in QF sources, for function stop(), that the code loop for opened
sessions, would there be a problem with my actual session?
Please tell me if there is more info I could provide to you.
Best regards,
Martin
//Here is the initialisation of the initiator:
private void doInit(string file, Int32 intMaxDelayToSend) {
m_sessionSettings = new SessionSettings(filePath);
FileStoreFactory factory = new FileStoreFactory(m_sessionSettings);
ScreenLogFactory logFactory = new ScreenLogFactory(true, true, true);
DefaultMessageFactory messageFactory = new DefaultMessageFactory();
m_initiator = new SocketInitiator(this, factory, m_sessionSettings,
logFactory, messageFactory);
}
// Connects the fIX initiator
public void Connect() { m_initiator.start(); }
// Disconnects the FIX initiator
public void Disconnect()
{
try
{
m_initiator.stop(); //Hang here and QF don't throw any exception.
}
catch(System.Exception ex)
{
Console.WriteLine(ex.StackTrace);
}
m_initiator.__dtor();
}
>From: Joerg Thoennes <Joe...@ma...>
>To: Martin Tanguay <mta...@ho...>
>CC: qui...@li...
>Subject: Re: [Quickfix-developers] Disconnection problem...
>Date: Wed, 10 Aug 2005 10:20:27 +0200
>
>>//Here is my Initiator declaration:
>>public SocketInitiator sokInitiator;
>>
>>When I call sokInitiator.stop(); to disconnect my application, it just
>>hang there until I kill the program. Do you know what could cause it not
>>being able to close the connection?
>
>Martin, please provide more context. Stack trace etc.
>
>Cheers, Jörg
>
>--
>Joerg Thoennes
> http://macd.com
>Tel.: +49 (0)241 44597-24 Macdonald Associates GmbH
>Fax : +49 (0)241 44597-10 Lothringer Str. 52, D-52070 Aachen
|