Thread: [Quickfix-users] .NET Can not open bpdy file ... unreleased resources
Brought to you by:
orenmnero
From: Tom F. <tom...@ki...> - 2006-04-26 17:44:00
|
Hi, I can not restart the ThreadedSocketInitiator as it throws "Can not open body file exception" due to some unreleased resources. Here is what I tried: initiator =3D new ThreadedSocketInitiator(application, fileStoreFactory, sessionSettings, fileLogFactory, messageFactory); initiator.Start(); initiator.Stop(); initiator =3D null; GC.Collect(); GC.WaitForPendingFinalizers(); initiator =3D new ThreadedSocketInitiator(application, fileStoreFactory, sessionSettings, fileLogFactory, messageFactory); ---->> Here I get "Could not open body file exception" Anybody has an idea? Thanks, Tom |
From: Tom F. <tom...@ki...> - 2006-04-27 12:53:50
|
Hm, so how others currently handling this: I have a socket initiator that tries to connect to a server but the server is down or maybe has some error. QuickFix will keep connecting as I can't stop the ThreadedSocketInitiator or my app will crash with some weird exceptions when I try. So I have no choice but bringing down my whole serve= r that hosts the fix enviroment to stop the connection attempts? Also, when I just want to modify the config file, I need to bring the server down again? Imho this is a very high priority bug. Tom |
From: Dale W. <wil...@oc...> - 2006-04-27 14:50:15
|
Hi Tom: In onLogout call session->logout(); It seems a bit counterintuitive, but that stops the automatic retries -- you're telling QuickFIX, "I really MEAN to be logged out -- it's not just an accident." When the application is ready to try again, calling session->logon() starts things up again. Dale Tom Frey wrote: > Hm, so how others currently handling this: > I have a socket initiator that tries to connect to a server but the > server is down or maybe has some error. QuickFix will keep connecting > as I can't stop the ThreadedSocketInitiator or my app will crash with > some weird exceptions when I try. So I have no choice but bringing > down my whole server that hosts the fix enviroment to stop the > connection attempts? Also, when I just want to modify the config file, > I need to bring the server down again? Imho this is a very high > priority bug. > > Tom |
From: Oren M. <or...@qu...> - 2006-04-29 20:19:13
|
I'm currently not able to duplicate this. Do you have any more details = about what you are doing? Are you running multiple sessions? I tried = your example code on a ThreadedSocketInitiator with one session and did = not get the exception. Any more details about what you are doing would = be very helpful. If it is possible to send us a working project that = demonstrates the problem, all the better. --oren ----- Original Message -----=20 From: Tom Frey=20 To: qui...@li...=20 Sent: Thursday, April 27, 2006 7:53 AM Subject: [Quickfix-users] Re: .NET Can not open bpdy file ... = unreleased resources Hm, so how others currently handling this: I have a socket initiator that tries to connect to a server but the = server is down or maybe has some error. QuickFix will keep connecting as = I can't stop the ThreadedSocketInitiator or my app will crash with some = weird exceptions when I try. So I have no choice but bringing down my = whole server that hosts the fix enviroment to stop the connection = attempts? Also, when I just want to modify the config file, I need to = bring the server down again? Imho this is a very high priority bug.=20 Tom |
From: Tom F. <tom...@ki...> - 2006-04-29 23:29:25
|
Hm, I got an email from another user who mentioned that he has the same problem and that he can reproduce it at will. I'll try to code up a quick sample tomorrow that replicates this behavior. I'm running 2 sessions but also 2 ThreadedSocketInitiator instances. Regards, Tom ----- Original Message ---- From: Oren Miller <or...@qu...> To: Tom Frey <tom...@ki...>; qui...@li... Sent: Saturday, April 29, 2006 10:18:27 PM Subject: Re: [Quickfix-users] Re: .NET Can not open bpdy file ... unreleased resources I'm currently not able to duplicate this. Do you have any more details about what you are doing? Are you running multiple sessions? I tried your example code on a ThreadedSocketInitiator with one session and did not get the exception. Any more details about what you are doing would be very helpful. If it is possible to send us a working project that demonstrates the problem, all the better. --oren ----- Original Message ----- From: Tom Frey To: qui...@li... Sent: Thursday, April 27, 2006 7:53 AM Subject: [Quickfix-users] Re: .NET Can not open bpdy file ... unreleased resources Hm, so how others currently handling this: I have a socket initiator that tries to connect to a server but the server is down or maybe has some error. QuickFix will keep connecting as I can't stop the ThreadedSocketInitiator or my app will crash with some weird exceptions when I try. So I have no choice but bringing down my whole server that hosts the fix enviroment to stop the connection attempts? Also, when I just want to modify the config file, I need to bring the server down again? Imho this is a very high priority bug. Tom |