Thanks Mike, makes sense.<br><br>Then first one is bug because I don't get logout event if I use Stop(true)...<br><br><div class="gmail_quote">On Fri, Feb 24, 2012 at 4:08 PM, Mike Gatny <span dir="ltr"><<a href="mailto:mgatny@connamara.com">mgatny@connamara.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Fri, Feb 24, 2012 at 3:42 AM, Rasheed Waraich <span dir="ltr"><<a href="mailto:rashiedwaraich@gmail.com" target="_blank">rashiedwaraich@gmail.com</a>></span> wrote:<br>
</div><div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

What is the reason that OnLogout is never called when you pass true in the "_initiator.Stop(true);"?<br></blockquote><div><br></div></div><div>This may be a bug.   You should get an OnLogout for a session whenever a Logout is received on that session, or if the connection is suddenly disconnected.</div>
<div class="im">

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Secondly what is the difference between "_initiator.Stop();" and "_initiator.Stop(true);"? Can you please recommend that under what use-cases should we use either of them?<br clear="all">


</blockquote><div><br></div></div><div>Calling Initiator.Stop() logs out all sessions, and then waits to ensure that they are all logged out cleanly.  If you call Initiator.Stop(true), the initiator will attempt to logout the sessions, but it will not wait to ensure that it is done cleanly.   You should use Stop() in most cases.  However, if your application has encountered a fatal error/exception and you want it to shut down immediately, use Stop(true).</div>
<span class="HOEnZb"><font color="#888888">

<div><br></div></font></span></div><span class="HOEnZb"><font color="#888888">-- <br><font face="arial, helvetica, sans-serif">Mike Gatny<br>Connamara Systems, LLC</font><br>
</font></span><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></blockquote></div><br><br clear="all"><br>-- <br>//Regards<br>Rasheed<br>