<div dir="ltr">My workaround is to use custom StoreFactory which writes to DB instead of <span style="font-family:arial,sans-serif;font-size:13px">FileStoreFactory. Hope that'll help.</span></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Mar 6, 2013 at 8:02 AM, Grant Birchmeier <span dir="ltr"><<a href="mailto:gbirchmeier@connamara.com" target="_blank">gbirchmeier@connamara.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This is a known issue. We have a submission for a fix that we will review soon.<br>
<a href="https://github.com/connamara/quickfixn/issues/48" target="_blank">https://github.com/connamara/quickfixn/issues/48</a><br>
<br>
I'm not aware of a workaround, aside from simply shutting the app completely.<br>
<br>
-Grant<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On Wed, Mar 6, 2013 at 9:58 AM, Walter Robert Ditzler<br>
<<a href="mailto:ditwal001@gmail.com">ditwal001@gmail.com</a>> wrote:<br>
> Hi there,<br>
><br>
> I start the initiator:<br>
><br>
> ***<br>
> _SessionSettings = new<br>
> SessionSettings(System.AppDomain.CurrentDomain.BaseDirectory +<br>
> "communicator.cfg");<br>
> _FileStoreFactory = new FileStoreFactory(_SessionSettings);<br>
> _Application = new Application();<br>
> _SocketInitiator = new SocketInitiator(_Application, _FileStoreFactory,<br>
> _SessionSettings);<br>
> _SocketInitiator.Start();<br>
> ***<br>
><br>
> Then I stop it<br>
><br>
> ***<br>
> _SocketInitiator.Stop(true);<br>
> ***<br>
><br>
> When I want to start it again, without closing my app<br>
><br>
> ***<br>
> _SocketInitiator.Start();<br>
> ***<br>
><br>
> I get the following error<br>
><br>
> ***<br>
> "The process cannot access the file<br>
> 'C:\\DATA\\ABO_DEV\\VS2012\\sw\\output\\store\\FIX.4.2-DATA_FIX_xxx.header'<br>
> because it is being used by another process."<br>
> ***<br>
><br>
> Is there a way to release that file from the memory? Which component do I<br>
> have to relase?<br>
><br>
> Thanks a lot,<br>
><br>
> Walter.<br>
><br>
><br>
> Ps: I tried:<br>
><br>
> ***<br>
> if (_SocketInitiator == null)<br>
> return;<br>
><br>
> if (_SocketInitiator.IsLoggedOn())<br>
> _SocketInitiator.Stop(true);<br>
><br>
> if (_Application != null)<br>
> _Application = null;<br>
><br>
> if (_FileStoreFactory != null)<br>
> _FileStoreFactory = null;<br>
> ***<br>
><br>
> _______________________________________________<br>
> Quickfixn mailing list<br>
> <a href="mailto:Quickfixn@lists.quickfixn.com">Quickfixn@lists.quickfixn.com</a><br>
> <a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com" target="_blank">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a><br>
<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Grant Birchmeier<br>
Connamara Systems, LLC<br>
Made-To-Measure Trading Solutions.<br>
Exactly what you need. No more. No less.<br>
<a href="http://connamara.com" target="_blank">http://connamara.com</a><br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Quickfixn mailing list<br>
<a href="mailto:Quickfixn@lists.quickfixn.com">Quickfixn@lists.quickfixn.com</a><br>
<a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com" target="_blank">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a><br>
</div></div></blockquote></div><br></div>