RE: [Quickfix-developers] stopping initiator hangs application
Brought to you by:
orenmnero
|
From: Dave L. <dav...@ma...> - 2006-04-07 07:04:18
|
Hi Tony,
Rather than calling logout and then stop (stop will logout anyway), have
you tried calling stop and then waiting for the logout to complete? e.g:
//stop the initiator
initiator.stop();
//wait for logout
while(initiator.isLoggedOn())
Thread.Sleep(500);
//continue...
Cheers
Dave
-----Original Message-----
From: qui...@li...
[mailto:qui...@li...] On Behalf Of
tony weston
Sent: 06 April 2006 19:43
To: qui...@li...
Subject: [Quickfix-developers] stopping initiator hangs application
Hello,
I've been using quickfix with great success, although I've came across a
problem when trying to stop an initiator in VB .Net 2. When I call
"stop" my application will frequently hang on this call. I've tried
with version 1.11.1 and with using the automated builds for VS 8 under
the developers section of the website, both having the same results.
I'm also passing a value of "True" when calling the stop method to force
close, but it still occasionally hangs. Before calling stop I call
logout on my open session. Is there something that I'm doing
incorrectly or another way to get around this problem?
Thank you,
Tony
|