<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"Eras Demi ITC";}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m trying to create QuickFix Messages like this:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="background:white;mso-highlight:white">new QuickFix.Message(@"8=FIX.4.2|35=B|49=TR_Initiator|52=20090101-17:13:06.684|56=TR_Acceptor|148=mounds|33=0", true);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="background:white;mso-highlight:white"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="background:white;mso-highlight:white">But I’m always getting the following error: (with the error happening at various positions)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="background:white;mso-highlight:white"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="background:white;mso-highlight:white">What am I missing?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="background:white;mso-highlight:white"><o:p> </o:p></span></p>
<p class="MsoNormal">QuickFix.MessageParseError was unhandled by user code<o:p></o:p></p>
<p class="MsoNormal">  HResult=-2146233088<o:p></o:p></p>
<p class="MsoNormal">  Message=Could not parse message: Error at position (2) while parsing msg (8=FIX.4.2|35=B|49=TR_Initiator|52=20090101-17:13:06.684|56=TR_Acceptor|148=mounds|33=0)<o:p></o:p></p>
<p class="MsoNormal">  Source=QuickFix<o:p></o:p></p>
<p class="MsoNormal">  StackTrace:<o:p></o:p></p>
<p class="MsoNormal">       at QuickFix.Message.ExtractField(String msgstr, Int32& pos, DataDictionary sessionDD, DataDictionary appDD)<o:p></o:p></p>
<p class="MsoNormal">       at QuickFix.Message.ExtractField(String msgstr, Int32& pos)<o:p></o:p></p>
<p class="MsoNormal">       at QuickFix.Message.FromStringHeader(String msgstr)<o:p></o:p></p>
<p class="MsoNormal">       at QuickFix.Message..ctor(String msgstr, DataDictionary sessionDataDictionary, DataDictionary appDD, Boolean validate)<o:p></o:p></p>
<p class="MsoNormal">       at QuickFix.Message..ctor(String msgstr, Boolean validate)<o:p></o:p></p>
<p class="MsoNormal">       at BondsTrading.Tests.FixProcessor.Messages.MessageConverterTest.SellSideTcrOnSubmissionMessage() in c:\Users\fsl\source\BondsTrading\trunk\Implementation\BondsTrading\BondsTrading.Tests\FixProcessor\Messages\MessageConverterTest.cs:line
 37<o:p></o:p></p>
<p class="MsoNormal">       at BondsTrading.Tests.FixProcessor.Messages.MessageConverterTest.ShouldNeverReturnNull() in c:\Users\fsl\source\BondsTrading\trunk\Implementation\BondsTrading\BondsTrading.Tests\FixProcessor\Messages\MessageConverterTest.cs:line
 16<o:p></o:p></p>
<p class="MsoNormal">  InnerException: System.ArgumentOutOfRangeException<o:p></o:p></p>
<p class="MsoNormal">       HResult=-2146233086<o:p></o:p></p>
<p class="MsoNormal">       Message=Length cannot be less than zero.<o:p></o:p></p>
<p class="MsoNormal">Parameter name: length<o:p></o:p></p>
<p class="MsoNormal">       Source=mscorlib<o:p></o:p></p>
<p class="MsoNormal">       ParamName=length<o:p></o:p></p>
<p class="MsoNormal">       StackTrace:<o:p></o:p></p>
<p class="MsoNormal">            at System.String.Substring(Int32 startIndex, Int32 length)<o:p></o:p></p>
<p class="MsoNormal">            at QuickFix.Message.ExtractField(String msgstr, Int32& pos, DataDictionary sessionDD, DataDictionary appDD)<o:p></o:p></p>
<p class="MsoNormal">       InnerException:<span style="background:white;mso-highlight:white"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white"><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="DA" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#0B1D3F;mso-fareast-language:DA">Best regards</span><span lang="DA" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D;mso-fareast-language:DA">
</span><span lang="DA" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#0B1D3F;mso-fareast-language:DA">/</span><span lang="DA" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D;mso-fareast-language:DA">
</span><span lang="DA" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#0B1D3F;mso-fareast-language:DA">Med venlig hilsen</span><span lang="DA" style="font-family:"Arial","sans-serif";color:#181818;mso-fareast-language:DA"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DA" style="font-size:12.0pt;font-family:"Arial","sans-serif";color:#0A0E15;mso-fareast-language:DA"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="DA" style="font-size:12.0pt;font-family:"Eras Demi ITC";color:#0B1D3F;mso-fareast-language:DA">Fredrik Skeel Løkke</span></b><span lang="DA" style="font-size:12.0pt;font-family:"Eras Demi ITC";color:#0B1D3F;mso-fareast-language:DA"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#0B1D3F;mso-fareast-language:DA">Software Developer
</span><span lang="EN-US" style="font-family:"Arial","sans-serif";color:#0B1D3F;mso-fareast-language:DA">ǀ</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#0B1D3F;mso-fareast-language:DA"> IT & Analysis
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#1F497D;mso-fareast-language:DA"> </span><u><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#181818;mso-fareast-language:DA">
</span></u><span lang="EN-US" style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#181818;mso-fareast-language:DA"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#181818;mso-fareast-language:DA">Mob.: +45 3176 8438<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#1982D1;mso-fareast-language:DA"><a href="mailto:fsl@lindcapital.com"><span style="color:#1982D1">fsl@lindcapital.com</span></a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;color:#2D95EB;mso-fareast-language:DA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#222222;mso-fareast-language:EN-GB"><img border="0" width="193" height="50" id="Picture_x0020_1" src="cid:image001.png@01CF39F0.662D1AC0" alt="Beskrivelse: Beskrivelse: Beskrivelse: Beskrivelse: cid:image001.png@01CD4A0C.218B6960"></span><span lang="DA" style="color:#222222;mso-fareast-language:DA"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DA" style="font-family:"Arial","sans-serif";color:#181818;mso-fareast-language:DA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#181818;mso-fareast-language:DA">Lind Capital A/S<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#181818;mso-fareast-language:DA">Værkmestergade 3, 2<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DA" style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#181818;mso-fareast-language:DA">DK-8000 Aarhus C<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:130%"><span lang="DA" style="font-family:"Arial","sans-serif";color:#1F497D;mso-fareast-language:DA"><a href="http://www.lindcapital.com/"><span style="font-size:9.0pt;line-height:130%;color:#1982D1">www.lindcapital.com</span></a><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:115%"><span lang="DA" style="font-size:9.0pt;line-height:115%;font-family:"Arial","sans-serif";color:#181818;mso-fareast-language:DA">Follow us on</span><span lang="DA" style="color:#181818;mso-fareast-language:DA"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:115%"><span lang="DA" style="color:#181818;mso-fareast-language:DA">­</span><a href="http://www.linkedin.com/company/lind-capital-a-s"><span style="color:blue;mso-fareast-language:EN-GB;text-decoration:none"><img border="0" width="26" height="26" id="Picture_x0020_2" src="cid:image002.png@01CF39F0.662D1AC0" alt="linkedin"></span></a><span lang="DA" style="color:#181818;mso-fareast-language:DA"> 
</span><a href="http://www.facebook.com/LindCapital"><span style="color:blue;mso-fareast-language:EN-GB;text-decoration:none"><img border="0" width="26" height="26" id="Picture_x0020_3" src="cid:image003.png@01CF39F0.662D1AC0" alt="facebook"></span></a><span lang="DA" style="color:#181818;mso-fareast-language:DA"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>