{{Quickfixn}} error while re-run the initiator

Valcho Valchev valcho.valchev at gmail.com
Wed Mar 6 11:10:27 PST 2013


My workaround is to use custom StoreFactory which writes to DB instead
of FileStoreFactory.
Hope that'll help.


On Wed, Mar 6, 2013 at 8:02 AM, Grant Birchmeier
<gbirchmeier at connamara.com>wrote:

> This is a known issue.  We have a submission for a fix that we will review
> soon.
> https://github.com/connamara/quickfixn/issues/48
>
> I'm not aware of a workaround, aside from simply shutting the app
> completely.
>
> -Grant
>
>
> On Wed, Mar 6, 2013 at 9:58 AM, Walter Robert Ditzler
> <ditwal001 at gmail.com> wrote:
> > Hi there,
> >
> > I start the initiator:
> >
> > ***
> > _SessionSettings = new
> > SessionSettings(System.AppDomain.CurrentDomain.BaseDirectory +
> > "communicator.cfg");
> > _FileStoreFactory = new FileStoreFactory(_SessionSettings);
> > _Application = new Application();
> > _SocketInitiator = new SocketInitiator(_Application, _FileStoreFactory,
> > _SessionSettings);
> > _SocketInitiator.Start();
> > ***
> >
> > Then I stop it
> >
> > ***
> > _SocketInitiator.Stop(true);
> > ***
> >
> > When I want to start it again, without closing my app
> >
> > ***
> > _SocketInitiator.Start();
> > ***
> >
> > I get the following error
> >
> > ***
> > "The process cannot access the file
> >
> 'C:\\DATA\\ABO_DEV\\VS2012\\sw\\output\\store\\FIX.4.2-DATA_FIX_xxx.header'
> > because it is being used by another process."
> > ***
> >
> > Is there a way to release that file from the memory? Which component do I
> > have to relase?
> >
> > Thanks a lot,
> >
> > Walter.
> >
> >
> > Ps: I tried:
> >
> > ***
> > if (_SocketInitiator == null)
> >                     return;
> >
> >                 if (_SocketInitiator.IsLoggedOn())
> >                     _SocketInitiator.Stop(true);
> >
> >                 if (_Application != null)
> >                     _Application = null;
> >
> >                 if (_FileStoreFactory != null)
> >                     _FileStoreFactory = null;
> > ***
> >
> > _______________________________________________
> > Quickfixn mailing list
> > Quickfixn at lists.quickfixn.com
> > http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com
>
>
>
> --
> Grant Birchmeier
> Connamara Systems, LLC
> Made-To-Measure Trading Solutions.
> Exactly what you need. No more. No less.
> http://connamara.com
> _______________________________________________
> Quickfixn mailing list
> Quickfixn at lists.quickfixn.com
> http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20130306/669b6123/attachment-0002.htm>


More information about the Quickfixn mailing list