<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.hoenzb
{mso-style-name:hoenzb;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=DE-CH link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'>Hey,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'>thanks a lot for information, i just modified prefix (include timestamp) in FIleStore.cs. not nice but helps,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'>thanks walter<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'>***<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'>public static string Prefix(SessionID sessionID)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'> {<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'> DateTime utcnow = DateTime.UtcNow;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'> string timestamp = (utcnow.Year.ToString().Length == 2 ? "20" + utcnow.Year.ToString() : utcnow.Year.ToString());<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'> timestamp = timestamp + "-" + (utcnow.Month.ToString().Length == 1 ? "0" + utcnow.Month.ToString() : utcnow.Month.ToString());<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'> timestamp = timestamp + "-" + (utcnow.Day.ToString().Length == 1 ? "0" + utcnow.Day.ToString() : utcnow.Day.ToString());<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'> timestamp = timestamp + "_" + (utcnow.Hour.ToString().Length == 1 ? "0" + utcnow.Hour.ToString() : utcnow.Hour.ToString());<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'> timestamp = timestamp + "" + (utcnow.Minute.ToString().Length == 1 ? "0" + utcnow.Minute.ToString() : utcnow.Minute.ToString());<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'> timestamp = timestamp + "" + (utcnow.Second.ToString().Length == 1 ? "0" + utcnow.Second.ToString() : utcnow.Second.ToString());<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'> timestamp = timestamp + "." + (utcnow.Millisecond.ToString().Length == 1 ? "00" + utcnow.Millisecond.ToString() : (utcnow.Millisecond.ToString().Length == 2 ? "0" + utcnow.Millisecond.ToString() : utcnow.Millisecond.ToString()));<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'> System.Text.StringBuilder prefix = new System.Text.StringBuilder(timestamp+"_"+sessionID.BeginString)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'> .Append('-').Append(sessionID.SenderCompID);<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'> if (SessionID.IsSet(sessionID.SenderSubID))<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'> prefix.Append('_').Append(sessionID.SenderSubID);<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'> if (SessionID.IsSet(sessionID.SenderLocationID))<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'> prefix.Append('_').Append(sessionID.SenderLocationID);<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'> prefix.Append('-').Append(sessionID.TargetCompID);<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'> if (SessionID.IsSet(sessionID.TargetSubID))<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'> prefix.Append('_').Append(sessionID.TargetSubID);<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'> if (SessionID.IsSet(sessionID.TargetLocationID))<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'> prefix.Append('_').Append(sessionID.TargetLocationID);<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'> if (sessionID.SessionQualifier.Length != 0)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'> prefix.Append('-').Append(sessionID.SessionQualifier);<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'> return prefix.ToString();<o:p></o:p></span></p><div style='mso-element:para-border-div;border:none;border-bottom:dotted windowtext 3.0pt;padding:0cm 0cm 1.0pt 0cm'><p class=MsoNormal style='border:none;padding:0cm'><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'> }<o:p></o:p></span></p></div><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif"'> quickfixn-bounces@lists.quickfixn.com [mailto:quickfixn-bounces@lists.quickfixn.com] <b>On Behalf Of </b>Valcho Valchev<br><b>Sent:</b> Mittwoch, 6. März 2013 20:10<br><b>To:</b> Mailing list for QuickFIX/n<br><b>Subject:</b> Re: {{Quickfixn}} error while re-run the initiator<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>My workaround is to use custom StoreFactory which writes to DB instead of <span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>FileStoreFactory. Hope that'll help.</span><o:p></o:p></p></div><div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p><div><p class=MsoNormal>On Wed, Mar 6, 2013 at 8:02 AM, Grant Birchmeier <<a href="mailto:gbirchmeier@connamara.com" target="_blank">gbirchmeier@connamara.com</a>> wrote:<o:p></o:p></p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><p class=MsoNormal>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<o:p></o:p></p><div><div><p class=MsoNormal style='margin-bottom:12.0pt'><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><o:p></o:p></p></div></div><p class=MsoNormal><span class=hoenzb><span style='color:#888888'>--</span></span><span style='color:#888888'><br><span class=hoenzb>Grant Birchmeier</span><br><span class=hoenzb>Connamara Systems, LLC</span><br><span class=hoenzb>Made-To-Measure Trading Solutions.</span><br><span class=hoenzb>Exactly what you need. No more. No less.</span><br><span class=hoenzb><a href="http://connamara.com" target="_blank">http://connamara.com</a></span></span><o:p></o:p></p><div><div><p class=MsoNormal>_______________________________________________<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><o:p></o:p></p></div></div></blockquote></div><p class=MsoNormal><o:p> </o:p></p></div></div></body></html>