<div dir="ltr"><div class="gmail_default" style="font-size:small;color:#000000"><div class="gmail_default">1) I just explained why you got the error you reported.  I am confident.  I am helping you for free; please don't ignore my answer.</div><div class="gmail_default"><br></div></div><div class="gmail_default" style="font-size:small;color:#000000">2) The Nuget package "works" because it's prematurely disposing the store file, which is misbehavior in the bug #196 that was fixed.  If you Start/Stop/Start it, it might not crash due to the store file, but it's going to do other buggy things.  Please stop telling me that the Nuget file works, because per #196 it actually doesn't.  Please believe me.</div><div class="gmail_default" style="font-size:small;color:#000000"><br></div><div class="gmail_default" style="font-size:small;color:#000000">3) I've previously told you that your session count observations are a red herring, and you should stop focusing on that.  It is not relevant.  (I believe the #196 fix also changed how these session counts work, which would explain the difference you are seeing)</div><div class="gmail_default" style="font-size:small;color:#000000"><br></div><div class="gmail_default" style="font-size:small;color:#000000">-Grant</div><div class="gmail_default" style="font-size:small;color:#000000"><br></div><div class="gmail_default" style="font-size:small;color:#000000"><br></div><div class="gmail_default" style="font-size:small;color:#000000"><br></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Tue, Jul 15, 2025 at 1:37 PM somnath pal <<a href="mailto:palsomnath@hotmail.com">palsomnath@hotmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-2837373207934788900">




<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
This is for test application. Where I start/ stop for testing and recreate the acceptor. But my point is, I use nuget package, this issue doesn't happen. After stop, session count is 0. But in executor after stop session count is 10.</div>
<div id="m_-2837373207934788900Signature">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Thanks,</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Somnath</div>
</div>
<div id="m_-2837373207934788900appendonsend"></div>
<hr style="display:inline-block;width:98%">
<div id="m_-2837373207934788900divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Grant Birchmeier <<a href="mailto:gbirchmeier@connamara.com" target="_blank">gbirchmeier@connamara.com</a>><br>
<b>Sent:</b> 16 July 2025 00:04<br>
<b>To:</b> Mailing list for QuickFIX/n <<a href="mailto:quickfixn@lists.quickfixn.com" target="_blank">quickfixn@lists.quickfixn.com</a>><br>
<b>Cc:</b> somnath pal <<a href="mailto:palsomnath@hotmail.com" target="_blank">palsomnath@hotmail.com</a>><br>
<b>Subject:</b> Re: {{Quickfixn}} Sending Email Message Problem</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div style="font-size:small;color:rgb(0,0,0)">First, you aren't telling me exception you're seeing.  Is it still the store file error?  I assume it is.</div>
<div style="font-size:small;color:rgb(0,0,0)"><br>
</div>
<div style="font-size:small;color:rgb(0,0,0)">Now I think I see what you're doing wrong.  You are creating a new acceptor, but the old acceptor object (with the same settings, thus same store/log file paths) is still alive and undisposed. 
 It still has an open filehandle to the store file, so of course your new acceptor can't open the file.</div>
<div style="font-size:small;color:rgb(0,0,0)"><br>
</div>
<div style="font-size:small;color:rgb(0,0,0)">But why are you re-creating the ThreadedSocketAcceptor?  Totally unnecessary, and pointless.  Just call .Start() again.</div>
<div style="font-size:small;color:rgb(0,0,0)"><br>
</div>
</div>
<br>
<div>
<div dir="ltr">On Tue, Jul 15, 2025 at 1:25 PM somnath pal via Quickfixn <<a href="mailto:quickfixn@lists.quickfixn.com" target="_blank">quickfixn@lists.quickfixn.com</a>> wrote:<br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Problem still there</div>
<div id="m_-2837373207934788900x_m_-597585091199023327m_3064342182162330595appendonsend"></div>
<hr style="display:inline-block;width:98%">
<div id="m_-2837373207934788900x_m_-597585091199023327m_3064342182162330595divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> somnath pal <<a href="mailto:palsomnath@hotmail.com" target="_blank">palsomnath@hotmail.com</a>><br>
<b>Sent:</b> 15 July 2025 23:49<br>
<b>To:</b> Mailing list for QuickFIX/n <<a href="mailto:quickfixn@lists.quickfixn.com" target="_blank">quickfixn@lists.quickfixn.com</a>><br>
<b>Subject:</b> Re: {{Quickfixn}} Sending Email Message Problem</font>
<div> </div>
</div>
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Infact I decided to check. </div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I downloaded the master.</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Opened the solution.</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Set executor as start project.</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
srv.Stop();</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
acceptor.Stop();</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
acceptor = new ThreadedSocketAcceptor(executorApp, storeFactory, settings, logFactory);</div>
<div id="m_-2837373207934788900x_m_-597585091199023327m_3064342182162330595x_Signature">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Thanks,</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Somnath</div>
</div>
<div id="m_-2837373207934788900x_m_-597585091199023327m_3064342182162330595x_appendonsend"></div>
<hr style="display:inline-block;width:98%">
<div id="m_-2837373207934788900x_m_-597585091199023327m_3064342182162330595x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Quickfixn <<a href="mailto:quickfixn-bounces@lists.quickfixn.com" target="_blank">quickfixn-bounces@lists.quickfixn.com</a>>
 on behalf of somnath pal via Quickfixn <<a href="mailto:quickfixn@lists.quickfixn.com" target="_blank">quickfixn@lists.quickfixn.com</a>><br>
<b>Sent:</b> 15 July 2025 23:30<br>
<b>To:</b> Mailing list for QuickFIX/n <<a href="mailto:quickfixn@lists.quickfixn.com" target="_blank">quickfixn@lists.quickfixn.com</a>><br>
<b>Cc:</b> somnath pal <<a href="mailto:palsomnath@hotmail.com" target="_blank">palsomnath@hotmail.com</a>><br>
<b>Subject:</b> Re: {{Quickfixn}} Sending Email Message Problem</font>
<div> </div>
</div>
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Thanks Grant I will check tomorrow and let you know the result.</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Thanks again for all the help.</div>
<div id="m_-2837373207934788900x_m_-597585091199023327m_3064342182162330595x_x_Signature">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Somnath</div>
</div>
<div id="m_-2837373207934788900x_m_-597585091199023327m_3064342182162330595x_x_appendonsend"></div>
<hr style="display:inline-block;width:98%">
<div id="m_-2837373207934788900x_m_-597585091199023327m_3064342182162330595x_x_divRplyFwdMsg" dir="ltr">
<font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Quickfixn <<a href="mailto:quickfixn-bounces@lists.quickfixn.com" target="_blank">quickfixn-bounces@lists.quickfixn.com</a>> on behalf of Grant Birchmeier via Quickfixn <<a href="mailto:quickfixn@lists.quickfixn.com" target="_blank">quickfixn@lists.quickfixn.com</a>><br>
<b>Sent:</b> 15 July 2025 23:27<br>
<b>To:</b> Mailing list for QuickFIX/n <<a href="mailto:quickfixn@lists.quickfixn.com" target="_blank">quickfixn@lists.quickfixn.com</a>><br>
<b>Cc:</b> Grant Birchmeier <<a href="mailto:gbirchmeier@connamara.com" target="_blank">gbirchmeier@connamara.com</a>><br>
<b>Subject:</b> Re: {{Quickfixn}} Sending Email Message Problem</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div dir="ltr">
<div style="font-size:small;color:rgb(0,0,0)">The repo is: <a href="https://github.com/connamara/quickfixn" target="_blank">
https://github.com/connamara/quickfixn</a></div>
<div style="font-size:small;color:rgb(0,0,0)"><br>
</div>
<div style="font-size:small;color:rgb(0,0,0)">If you are using the latest version of the `master` branch in that repo but still seeing the problem, then I think the problem has to be something you are doing in your code.  As I said earlier, I ran a demo acceptor
 on this branch and called Stop/Start/Stop repeatedly, and saw no issues.</div>
<div style="font-size:small;color:rgb(0,0,0)"><br>
</div>
<div style="font-size:small;color:rgb(0,0,0)">-Grant</div>
<div style="font-size:small;color:rgb(0,0,0)"><br>
</div>
</div>
<br>
<div>
<div dir="ltr">On Tue, Jul 15, 2025 at 12:52 PM somnath pal <<a href="mailto:palsomnath@hotmail.com" target="_blank">palsomnath@hotmail.com</a>> wrote:<br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Hi Grant,</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I can understand the volume of software and version management is not easy. </div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Finally we came to a conclusion and that is great.</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I am also confused about your lates repo. Today morning, I downloaded from GitHub but that didn't help. Can you please point me to correct URL? </div>
<div id="m_-2837373207934788900x_m_-597585091199023327m_3064342182162330595x_x_x_m_151411982518257791Signature">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Thanks,</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Somnath</div>
</div>
<div id="m_-2837373207934788900x_m_-597585091199023327m_3064342182162330595x_x_x_m_151411982518257791appendonsend">
</div>
<hr style="display:inline-block;width:98%">
<div id="m_-2837373207934788900x_m_-597585091199023327m_3064342182162330595x_x_x_m_151411982518257791divRplyFwdMsg" dir="ltr">
<font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Quickfixn <<a href="mailto:quickfixn-bounces@lists.quickfixn.com" target="_blank">quickfixn-bounces@lists.quickfixn.com</a>> on behalf of Grant Birchmeier <<a href="mailto:gbirchmeier@connamara.com" target="_blank">gbirchmeier@connamara.com</a>><br>
<b>Sent:</b> 15 July 2025 21:58<br>
<b>To:</b> Mailing list for QuickFIX/n <<a href="mailto:quickfixn@lists.quickfixn.com" target="_blank">quickfixn@lists.quickfixn.com</a>><br>
<b>Subject:</b> Re: {{Quickfixn}} Sending Email Message Problem</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div style="font-size:small;color:rgb(0,0,0)">Somnath,</div>
<div style="font-size:small;color:rgb(0,0,0)"><br>
</div>
<div style="font-size:small;color:rgb(0,0,0)">I apologize, I see now that the issue you are facing is very real.  It was documented in issue #196, and finally fixed with PR #959 earlier this year.  It will be in the next release (1.14), which I hope to have
 out by the end of August.</div>
<div style="font-size:small;color:rgb(0,0,0)"><br>
</div>
<div style="font-size:small;color:rgb(0,0,0)">When I tried to reproduce your problem, I was using the latest repo source, so of course I didn't replicate the bug, because it was fixed!</div>
<div style="font-size:small;color:rgb(0,0,0)"><br>
</div>
<div style="font-size:small;color:rgb(0,0,0)">To get going, you can clone or download the current github repo and build the dlls yourself.  If you have any questions about building, you can ask them here.</div>
<div style="font-size:small;color:rgb(0,0,0)"><br>
</div>
<div style="font-size:small;color:rgb(0,0,0)">-Grant</div>
<div style="font-size:small;color:rgb(0,0,0)"><br>
</div>
<div style="font-size:small;color:rgb(0,0,0)"><br>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<div dir="ltr">
<div dir="ltr">
<div><span></span></div>
</div>
</div>
</div>
<br>
<span style="color:rgb(29,28,29);font-family:Slack-Lato,appleLogo,sans-serif;white-space:pre-wrap;background-color:white"><font size="2">This email, along with any attachments, is confidential. If you believe you received this message in error, please contact
 the sender immediately and delete all copies of the message. Thank you from Connamara Systems, LLC.</font></span></div>
</div>
</div>
</div>
_______________________________________________<br>
Quickfixn mailing list<br>
<a href="mailto:Quickfixn@lists.quickfixn.com" target="_blank">Quickfixn@lists.quickfixn.com</a><br>
<a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com" rel="noreferrer" target="_blank">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a><br>
</div>
</blockquote>
</div>
<div><br clear="all">
</div>
<div><br>
</div>
<span>-- </span><br>
<div dir="ltr">
<div dir="ltr">
<div><span>
<div dir="ltr" align="left" style="margin-left:0pt">
<table style="border:none;border-collapse:collapse">
<colgroup><col width="122"><col width="298"></colgroup>
<tbody>
<tr style="height:84.75pt">
<td style="vertical-align:top;overflow:hidden"><span style="border:none;display:inline-block;overflow:hidden;width:105px;height:83px"><a href="https://www.connamara.com" target="_blank"><img width="105" height="83" style="margin-left: 0px; margin-top: 0px;" src="https://lh4.googleusercontent.com/1ZKItKWIoLUepUXvEXgEeZWBlntjas7UxLPLuLLnsApbxAcRepKELA_SwZBe1BWEZ3huC6sJdz2ZzvUYLNgu56Zcm8bo2R_iLzXZVjDmMo67675iop6mEMOg_Y6q8Mtz7ylOW9t8RazXt-tyJtEyhE0"></a></span></td>
<td style="vertical-align:top;padding:5pt;overflow:hidden"><br>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Archivo,sans-serif;color:rgb(0,65,107);background-color:transparent;vertical-align:baseline">Grant Birchmeier</span></p>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Archivo,sans-serif;color:rgb(0,65,107);background-color:transparent;vertical-align:baseline">Director of Engineering, Connamara</span></p>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Archivo,sans-serif;color:rgb(0,65,107);background-color:transparent;vertical-align:baseline"><a href="mailto:gbirchmeier@connamara.com" target="_blank">gbirchmeier@connamara.com</a></span></p>
</td>
</tr>
</tbody>
</table>
</div>
</span></div>
</div>
</div>
<br>
<span style="color:rgb(29,28,29);font-family:Slack-Lato,appleLogo,sans-serif;white-space:pre-wrap;background-color:white"><font size="2">This email, along with any attachments, is confidential. If you believe you received this message in error, please contact
 the sender immediately and delete all copies of the message. Thank you from Connamara Systems, LLC.</font></span></div>
</div>

</div></blockquote></div><div><br clear="all"></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><span><div dir="ltr" style="margin-left:0pt" align="left"><table style="border:none;border-collapse:collapse"><colgroup><col width="122"><col width="298"></colgroup><tbody><tr style="height:84.75pt"><td style="vertical-align:top;overflow:hidden"><span style="border:none;display:inline-block;overflow:hidden;width:105px;height:83px"><a href="https://www.connamara.com" target="_blank"><img src="https://lh4.googleusercontent.com/1ZKItKWIoLUepUXvEXgEeZWBlntjas7UxLPLuLLnsApbxAcRepKELA_SwZBe1BWEZ3huC6sJdz2ZzvUYLNgu56Zcm8bo2R_iLzXZVjDmMo67675iop6mEMOg_Y6q8Mtz7ylOW9t8RazXt-tyJtEyhE0" width="105" height="83" style="margin-left: 0px; margin-top: 0px;"></a></span></td><td style="vertical-align:top;padding:5pt;overflow:hidden"><br><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Archivo,sans-serif;color:rgb(0,65,107);background-color:transparent;vertical-align:baseline">Grant Birchmeier</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Archivo,sans-serif;color:rgb(0,65,107);background-color:transparent;vertical-align:baseline">Director of Engineering, Connamara</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Archivo,sans-serif;color:rgb(0,65,107);background-color:transparent;vertical-align:baseline"><a href="mailto:gbirchmeier@connamara.com" target="_blank">gbirchmeier@connamara.com</a></span></p></td></tr></tbody></table></div></span></div></div></div>

<br>
<span style="color:rgb(29,28,29);font-family:Slack-Lato,appleLogo,sans-serif;white-space:pre-wrap;background-color:white"><font size="2">This email, along with any attachments, is confidential. If you believe you received this message in error, please contact the sender immediately and delete all copies of the message. Thank you from Connamara Systems, LLC.</font></span>