<!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.........: FoxBase+/dBASE III+ (without
memo)<br>
Date of last update...: 1995-07-26<br>
Number of records.....: 1414347 (001594cbd)<br>
Length of header......: 97 (0061d)<br>
Record length.........: 81 (0051d)<br>
Columns in file.......: 2<br>
Rows in file..........: 1414347<br>
<br>
+---------------+-------+---------------+---------------+---------------+<br>
| field name | type | field adress | length | field
dec. |<br>
+---------------+-------+---------------+---------------+---------------+<br>
| ID | N | 0 | 10 |
0 |<br>
| String | C | 0 | 70 |
0 |<br>
+---------------+-------+---------------+---------------+---------------+</tt><br>
<br>
I am seeing memory corruption in my program after reading this combo
from the DBF.<br>
ID: 1374067<br>
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>
ID: 1374067<br>
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. Any ideas?<br>
<br>
- B<br>
</body>
</html>