<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    I have a simple DBF file I am trying to read<font color="#3333ff">:</font><br>
    <br>
    <tt>dBase Reader and Converter V. 0.8, (c) 2002 - 2003 by Bjoern
      Berg<br>
      <br>
      -- File statistics<br>
      dBase version.........:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FoxBase+/dBASE III+ (without
      memo)<br>
      Date of last update...:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1995-07-26<br>
      Number of records.....:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1414347 (001594cbd)<br>
      Length of header......:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 97 (0061d)<br>
      Record length.........:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 81 (0051d)<br>
      Columns in file.......:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2<br>
      Rows in file..........:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1414347<br>
      <br>
+---------------+-------+---------------+---------------+---------------+<br>
      | field name&nbsp;&nbsp;&nbsp; | type&nbsp; | field adress&nbsp; | length&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | field
      dec.&nbsp;&nbsp;&nbsp; |<br>
+---------------+-------+---------------+---------------+---------------+<br>
      |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ID&nbsp; |&nbsp;&nbsp; N&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp; 10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;
      0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<br>
      |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; String&nbsp; |&nbsp;&nbsp; C&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp; 70&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;
      0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<br>
+---------------+-------+---------------+---------------+---------------+</tt><br>
    <br>
    I am seeing memory corruption in my program after reading this combo
    from the DBF.<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ID:&nbsp;&nbsp;&nbsp; 1374067<br>
    &nbsp;&nbsp;&nbsp;&nbsp; String: UNITED STATES DEPARTMENT OF THE INTERIOR PATUXENT
    WILDLIFE RESEARCH CE<br>
    What makes this interesting is the string is 70 characters long
    (which is the width of the field).<br>
    <br>
    If I change the string in the DBF to:<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ID:&nbsp;&nbsp;&nbsp; 1374067<br>
    &nbsp;&nbsp;&nbsp;&nbsp; String: US DEPT OF THE INTERIOR PATUXENT WILDLIFE RESEARCH
    CENTER<br>
    (which is 57 characters) I no longer have any memory corruption.<br>
    <br>
    I tries this on both 1.2.10 and 1.3.0b2.&nbsp; Any ideas?<br>
    <br>
    - B<br>
  </body>
</html>