Re: [Quickfix-developers] CharField problem (VC6)
Brought to you by:
orenmnero
From: Alexey Z. <ale...@in...> - 2005-03-02 16:33:24
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000066"> Caleb,<br> <br> I use the last (1.9.4) version of cause.<br> Take a look to the sources - FieldsConvertors.h.<br> I don't claim this problem as a bug, BUT it's better to send an empty value than<br> a broken message.<br> <br> <pre class="moz-signature" cols="60">Regards, Alexey Zubko </pre> <br> <br> Caleb Epstein wrote: <blockquote cite="mid...@ma..." type="cite"> <pre wrap="">On Wed, 02 Mar 2005 09:48:32 -0500, Alexey Zubko <a class="moz-txt-link-rfc2396E" href="mailto:ale...@in..."><ale...@in...></a> wrote: </pre> <blockquote type="cite"> <pre wrap=""> I've got the following problem: I put a char field (Side) initiated with '\0' by mistake and got FIX message truncated. I think in this case QF has to check the value in CharConvertor::convert for 0. struct CharConvertor { static std::string convert( char value ) { return std::string( 1, value ); } ......... The following string is not empty and has size 1: std::string s( 1, '\0'); </pre> </blockquote> <pre wrap=""><!----> Which version of QuickFIX? There were some issues in QF up to and including version 1.9.2 which prevented messages with embedded null bytes from being serialized and deserialized properly. These should all be fixed as of 1.9.3 and later (though your Side field would still be invalid). </pre> </blockquote> </body> </html> |