title: Comport readstr
body: <p>I'm trying to reading a simple string from host on Serial line RS232.
  The parameters of receive - transmission are the same for both:</p>
  
  <pre><code>Baudrate: 9600;
  Data: 8bit;
  Parity: None;
  Stop: 1bit;
  Flow Control: None;
  </code></pre>
  
  <p>I've tried to send this string:</p>
  
  <p>!A243B324C213D300#</p>
  
  <p>I use '!' and '#' as header and finish to be sure the string will be received at all.
  The problem is that I can receive the string until the 15th character (3).</p>
  
  <p>I know this because if I use this code:</p>
  
  <pre><code>procedure TForm1.ComPort1RxChar(Sender: TObject; Count: Integer);
  begin
   ComPort1.ReadStr(Str, Count);
   memo1.Lines.Add(str);
  end;
  </code></pre>
  
  <p>I will see</p>
  
  <hr>
  
  <p>!A243B324C213D3</p>
  
  <p>00#</p>
  
  <hr>
  
  <p>I've tried to extend the buffer of the comport, without results.</p>
  
  <p>So why I can't receive the complete string in one shot?</p>
  
  <p>I found this library here and it works fine until now:</p>
  
  <p><a href="http://sourceforge.net/projects/comport/" rel="nofollow">http://sourceforge.net/projects/comport/</a></p>