<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small;color:#000000">I believe Stop() and Start() should just work.  (Are you using the most recent release?)</div><div class="gmail_default" style="font-size:small;color:#000000"><br></div><div class="gmail_default" style="font-size:small;color:#000000">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 class="gmail_default" style="font-size:small;color:#000000"><br></div><div class="gmail_default" style="font-size:small;color:#000000">So my advice is:<br><br></div><div class="gmail_default" style="font-size:small;color:#000000">* Stop looking at GetSessionIDs(), and do NOT call RemoveSession()!  Forget this approach altogether.</div><div class="gmail_default" style="font-size:small;color:#000000">* <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 class="gmail_default" style="font-size:small;color:#000000">* Next time you reply, show me your config files (minus any sensitive information).</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><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 9, 2025 at 12:41 PM somnath pal <<a href="mailto:palsomnath@hotmail.com" target="_blank">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>




<div dir="ltr">
<div style="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="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)">
            DualEngineAcceptor.Stop(true);</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)">
            //Check if all sessions are terminated and removed</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
            var sessionList = DualEngineAcceptor.GetSessionIDs();</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)">
            if (sessionList.Count > 0)</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
            {</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
                //Sessions are still attached</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
                foreach (var sessionId in sessionList)</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
                {</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
                    //Terminate and remove</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
                    if (sessionId != null) DualEngineAcceptor.RemoveSession(sessionId, true);</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
                }</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
            }</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)">
            //Dispose</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
            DualEngineAcceptor.Dispose();</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
            DualEngineAcceptor = null;</div>
<div id="m_6709175787041930764m_-6481663658564622780Signature">
<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_6709175787041930764m_-6481663658564622780appendonsend"></div>
<hr style="display:inline-block;width:98%">
<div id="m_6709175787041930764m_-6481663658564622780divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><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> 09 July 2025 20: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 dir="ltr">
<div style="font-size:small;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="font-size:small;color:rgb(0,0,0)"><br>
</div>
<div style="font-size:small;color:rgb(0,0,0)">If yes, it sounds like it may be related to your "ResetOn<X>" configurations.</div>
</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>

_______________________________________________<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 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>
</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>