<div dir="ltr">Hello James, <div>I'am not an expert of QuickFix, but as far as I know, Logon and Logout messages are Admin Messages, and need to be implemented their OnMessage(Logon/Logout Message)</div><div><br></div>
<div>If you doesn'nt implement resend, etc. Try to set ResetOnLogon on acceptor session</div><div><br></div><div>Thanks</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Oct 21, 2013 at 2:47 PM, Gaull, James <span dir="ltr"><<a href="mailto:JGaull@ftportfolios.com" target="_blank">JGaull@ftportfolios.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New"">Hello,<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New""><br>
I’m pretty new to QuickFIX. I’m using version 1.4.0.0 of the QuickFIX.dll in a C# Winforms application. I want to test what my application will do if the message sequence number that I receive from the server doesn’t match the sequence number I’m expecting.
After changing the NextTargetMsgSeqNum on my session, my application logs out and I see 2 messages related to this in the “.event.current.log”.<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New""><a href="tel:20131021-13" value="+12013102113" target="_blank">20131021-13</a>:29:06.435 : Verify failed: MsgSeqNum too low, expecting 20 but received 2<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New""><a href="tel:20131021-13" value="+12013102113" target="_blank">20131021-13</a>:29:06.437 : Session FIX.4.2:SenderId->TargetId disconnecting: Verify failed: MsgSeqNum too low, expecting 20 but received 2<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New"">The problem that I’m having is that the FromApp function isn’t being called before OnLogout so I can’t capture the message about the sequence number mismatching. I want
to send an e-mail to myself if this situation occurs.<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New"">Here’s my config:<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New"">[DEFAULT]<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New"">ConnectionType=initiator<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New"">ReconnectInterval=2<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New"">FileStorePath=c:\FIX\store<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New"">FileLogPath= c:\FIX\log<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New"">StartTime=00:00:00<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New"">EndTime=00:00:00<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New"">UseDataDictionary=Y<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New"">DataDictionary= c:\FIX\dictionary\FIX42.xml<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New"">SocketConnectHost=127.0.0.1<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New"">SocketConnectPort=5000<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New"">ResetOnLogon=Y<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New"">SendResetSeqNum=Y<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New""># standard config elements<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New"">[SESSION]<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New"">BeginString=FIX.4.2<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New"">SenderCompID=SenderId<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New"">TargetCompID=TargetId<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">HeartBtInt=30<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Any help is appreciated. Thanks for your time!</span><u></u><u></u></p>
</div>
</div>
<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></div>