Re: [Quickfix-developers] .NET stopping and starting initiator
Brought to you by:
orenmnero
From: Oren M. <or...@qu...> - 2007-10-30 16:05:55
|
Have you tried disposing the initiator? --oren On Oct 24, 2007, at 7:08 PM, Patrick Wright wrote: > QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/=20 > html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > Hi, > > > > When a socket initiator is stopped the storage files are still in =20 > use so that starting it again causes an error (=91cannot open body =20 > file=92). > > I get the problem when using the .NET version of QuickFix 1.12.4 =20 > but I notice that there is at least one other thread asking about =20 > this problem. > > Here is the relevant code section copied from that previous thread: > > > > > settings =3D new SessionSettings(configFile); > > > storeFactory =3D new > > FileStoreFactory(settings); logFactory =3D new FileLogFactory=20 > (settings); > > messageFactory =3D new DefaultMessageFactory(); initiator =3D new > > ThreadedSocketInitiator(this, storeFactory, settings, logFactory, > > messageFactory); > > > >... > > initiator.start(); > >... > > initiator.stop(); > > initiator =3D null; > > settings =3D null; > > storeFactory =3D null; > > logFactory =3D null; > > messageFactory =3D null; > > ---------------------------------------- > > > At this point all of the four storage files are still locked =20 > (can't be > > opened in notepad). Forcing garbage collection doesn't help. > > > > My question is: > > Has anyone managed to work around/fix this problem? > > I am using QuickFix from a .NET 2.0 WinForms app in C#. > > > > Thanks, > > Patrick Wright > > > > ----------------------------------------------------------------------=20= > --- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a =20 > browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/=20 > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers |