<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Here Start means = Creation of socket from scratch.</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
1<sup>st</sup> Start - Socket Created.</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Stop - Socket Stopped</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
2<sup>nd</sup> Start - Re-creating the Socket</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Since at 2<sup>nd</sup> Start Socket is re-created, we must dispose the socket after stop. That is for sure and if I do that all good.</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Only question is whether or not terminate and remove the sessions to avoid any resource/memory leak.</div>
<div id="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="appendonsend"></div>
<div><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<hr style="display: inline-block; width: 98%;">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<b>From:</b> somnath pal <palsomnath@hotmail.com><br>
<b>Sent:</b> Thursday, July 10, 2025 10:15<br>
<b>To:</b> Mailing list for QuickFIX/n <quickfixn@lists.quickfixn.com><br>
<b>Subject:</b> Re: {{Quickfixn}} Sending Email Message Problem </div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Already sent you the config file. I am using latest version (.net8) Here are the steps:</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Winform (C#) application with 2 buttons.</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Start Button Click - Starting the acceptor</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Stop Button Click  - Stooping the acceptor</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Clicked on Start Button - no issues</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Clicked on Stop Button - no issues</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Now Click on Start Buton again  - Error - "The process cannot access the file store\FIX.4.2-FIX_DRE-FWA.header' because it is being used by another process."</div>
<div id="x_Signature">
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
If I dispose the acceptor thread, after stop - error doesn't come.</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I have created a FIX Engine 20 years back (that time only C# wrapper over C++) and never encountered this. The product is working great in production since then. Now I have to add SSL and after migrating to .Net8 core package this is happening.</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks,</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Somnath</div>
</div>
<div id="x_appendonsend"></div>
<hr style="direction: ltr; display: inline-block; width: 98%;">
<div id="x_divRplyFwdMsg">
<div style="direction: ltr; font-family: Calibri, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<b>From:</b> Quickfixn <quickfixn-bounces@lists.quickfixn.com> on behalf of Grant Birchmeier <gbirchmeier@connamara.com><br>
<b>Sent:</b> 10 July 2025 00:23<br>
<b>To:</b> Mailing list for QuickFIX/n <quickfixn@lists.quickfixn.com><br>
<b>Subject:</b> Re: {{Quickfixn}} Sending Email Message Problem</div>
<div style="direction: ltr;"> </div>
</div>
<div style="direction: ltr; font-size: 9.75pt; color: rgb(0, 0, 0);">I believe Stop() and Start() should just work.  (Are you using the most recent release?)</div>
<div style="direction: ltr; font-size: 9.75pt; color: rgb(0, 0, 0);"><br>
</div>
<div style="direction: ltr; font-size: 9.75pt; color: rgb(0, 0, 0);">I think you are being mislead by GetSessionIDs().  These are maintained internally by QF, and how the Initiator and Acceptor maintains them are probably different.  I have worked with QF/n
 for 10+ years and I don't think I've ever thought to examine GetSessionIDs() closely in the way that you are doing.  It's not just not relevant.</div>
<div style="direction: ltr; font-size: 9.75pt; color: rgb(0, 0, 0);"><br>
</div>
<div style="direction: ltr; font-size: 9.75pt; color: rgb(0, 0, 0);">So my advice is:<br>
<br>
</div>
<div style="direction: ltr; font-size: 9.75pt; color: rgb(0, 0, 0);">* Stop looking at GetSessionIDs(), and do NOT call RemoveSession()!  Forget this approach altogether.</div>
<div style="direction: ltr; font-size: 9.75pt; color: rgb(0, 0, 0);">* <b>Look at your message and event logs!</b>  Use a FileLogFactory.  Tell me
<u>specifically</u> what you see in those logs.</div>
<div style="direction: ltr; font-size: 9.75pt; color: rgb(0, 0, 0);">* Next time you reply, show me your config files (minus any sensitive information).</div>
<div style="direction: ltr; font-size: 9.75pt; color: rgb(0, 0, 0);"><br>
</div>
<div style="direction: ltr; font-size: 9.75pt; color: rgb(0, 0, 0);">-Grant</div>
<div style="direction: ltr; font-size: 9.75pt; color: rgb(0, 0, 0);"><br>
</div>
<div style="direction: ltr; font-size: 9.75pt; color: rgb(0, 0, 0);"><br>
</div>
<div style="direction: ltr;"><br>
</div>
<div style="direction: ltr;">On Wed, Jul 9, 2025 at 12:41 PM somnath pal <<a href="mailto:palsomnath@hotmail.com" id="OWA6dc4a096-40be-b121-748e-6fc157457a96" class="OWAAutoLink">palsomnath@hotmail.com</a>> wrote:</div>
<blockquote style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left: 1px solid rgb(204, 204, 204);">
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I did the followings. Are these correct way to do this or there is a better way?</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
            DualEngineAcceptor.Stop(true);</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
            //Check if all sessions are terminated and removed</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
            var sessionList = DualEngineAcceptor.GetSessionIDs();</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
            if (sessionList.Count > 0)</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
            {</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
                //Sessions are still attached</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
                foreach (var sessionId in sessionList)</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
                {</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
                    //Terminate and remove</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
                    if (sessionId != null) DualEngineAcceptor.RemoveSession(sessionId, true);</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
                }</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
            }</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
            //Dispose</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
            DualEngineAcceptor.Dispose();</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
            DualEngineAcceptor = null;</div>
<div id="x_x_m_6709175787041930764m_-6481663658564622780Signature">
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks,</div>
<div style="direction: ltr; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Somnath</div>
</div>
<div id="x_x_m_6709175787041930764m_-6481663658564622780appendonsend"></div>
<hr style="direction: ltr; display: inline-block; width: 98%;">
<div id="x_x_m_6709175787041930764m_-6481663658564622780divRplyFwdMsg">
<div style="direction: ltr; font-family: Calibri, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<b>From:</b> Quickfixn <<a href="mailto:quickfixn-bounces@lists.quickfixn.com" id="OWAcb95fb5d-c338-1e58-bf1c-33128cda068a" class="OWAAutoLink">quickfixn-bounces@lists.quickfixn.com</a>> on behalf of Grant Birchmeier <<a href="mailto:gbirchmeier@connamara.com" id="OWA9c5eb907-87d2-4752-8dd4-127932c6a0bb" class="OWAAutoLink">gbirchmeier@connamara.com</a>><br>
<b>Sent:</b> 09 July 2025 20:58<br>
<b>To:</b> Mailing list for QuickFIX/n <<a href="mailto:quickfixn@lists.quickfixn.com" id="OWAe71d8e19-4996-7d39-d0c5-7eef584941b9" class="OWAAutoLink">quickfixn@lists.quickfixn.com</a>><br>
<b>Subject:</b> Re: {{Quickfixn}} Sending Email Message Problem</div>
<div style="direction: ltr;"> </div>
</div>
<div style="direction: ltr; font-size: 9.75pt; color: rgb(0, 0, 0);">When you say "it removes the session," do you actually mean it
<u>resets</u> the sessions?</div>
<div style="direction: ltr; font-size: 9.75pt; color: rgb(0, 0, 0);"><br>
</div>
<div style="direction: ltr; font-size: 9.75pt; color: rgb(0, 0, 0);">If yes, it sounds like it may be related to your "ResetOn<X>" configurations.</div>
<div style="direction: ltr;"><br>
<span style="font-family: Slack-Lato, appleLogo, sans-serif; font-size: 13px; color: rgb(29, 28, 29); background-color: white;">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.</span></div>
<div style="direction: ltr;">_______________________________________________<br>
Quickfixn mailing list<br>
<a href="mailto:Quickfixn@lists.quickfixn.com" id="OWA4b0e5b1e-e4bc-010f-93c0-51f666c29360" class="OWAAutoLink">Quickfixn@lists.quickfixn.com</a><br>
<a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com" id="OWA3093b566-2309-a797-b714-1235e306379f" class="OWAAutoLink" data-auth="NotApplicable">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a></div>
</blockquote>
<div style="direction: ltr;"><br>
</div>
<div style="direction: ltr;"><br>
</div>
<div style="direction: ltr;">--</div>
<div align="left" style="margin-left: 0pt;">
<table style="direction: ltr; box-sizing: border-box; border-collapse: collapse; border-spacing: 0px;">
<tbody>
<tr>
<td style="direction: ltr; vertical-align: top; width: 122px; height: 84px;">
<div style="direction: ltr; width: 105px; height: 83px; display: inline-block;"><a href="https://www.connamara.com" id="OWAe125f01b-a913-b82e-adbf-ab6ac1d90e36" class="OWAAutoLink" data-auth="NotApplicable"><img width="105" height="83" style="width: 105px; height: 83px; margin-top: 0px; margin-left: 0px;" src="https://lh4.googleusercontent.com/1ZKItKWIoLUepUXvEXgEeZWBlntjas7UxLPLuLLnsApbxAcRepKELA_SwZBe1BWEZ3huC6sJdz2ZzvUYLNgu56Zcm8bo2R_iLzXZVjDmMo67675iop6mEMOg_Y6q8Mtz7ylOW9t8RazXt-tyJtEyhE0"></a></div>
</td>
<td style="direction: ltr; padding: 5pt; vertical-align: top; width: 298px; height: 84px;">
<div style="direction: ltr;"><br>
</div>
<p style="direction: ltr; line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt;">
<span style="font-family: Archivo, sans-serif; font-size: 11pt; color: rgb(0, 65, 107);">Grant Birchmeier</span></p>
<p style="direction: ltr; line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt;">
<span style="font-family: Archivo, sans-serif; font-size: 11pt; color: rgb(0, 65, 107);">Director of Engineering, Connamara</span></p>
<p style="direction: ltr; line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt;">
<span style="font-family: Archivo, sans-serif; font-size: 11pt; color: rgb(0, 65, 107);"><a href="mailto:gbirchmeier@connamara.com" id="OWA71e6afb3-4a6b-405a-bdc1-b26003c97d0a" class="OWAAutoLink" style="margin-top: 0px; margin-bottom: 0px;">gbirchmeier@connamara.com</a></span></p>
</td>
</tr>
</tbody>
</table>
</div>
<div style="direction: ltr;"><br>
<span style="font-family: Slack-Lato, appleLogo, sans-serif; font-size: 13px; color: rgb(29, 28, 29); background-color: white;">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.</span></div>
</body>
</html>