Re: [Quickfix-developers] stopping initiator hangs application
Brought to you by:
orenmnero
|
From: Tony W. <ton...@tr...> - 2006-04-07 14:05:34
|
Hi Dave, Unfortunately, it hangs on the stop call so it will never reach the while loop that waits for the logout. I'm not currently waiting for a logout before calling stop, so putting this wait in after I call logout and before I call stop may fix the problem for me. Thank you, Tony Dave Linaker wrote: > 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 > > |