Closed GoogleCodeExporter closed 8 years ago
In had the same problem and figured out how to fix it:
The function readHead() should also update the EDB_table_ptr, otherwise this
one will be wrong and all record access after that has the wrong address:
// reads EDB_Header
void EDB::readHead()
{
edbRead(EDB_head_ptr, EDB_REC EDB_head, (unsigned long)sizeof(EDB_Header));
EDB_table_ptr = sizeof(EDB_Header) + EDB_head_ptr;
}
Like this it is the reverse of the code in create().
Original comment by martinha...@gmail.com
on 8 Jun 2011 at 10:24
On second thought, it should probably be the open function that be fixed. A
patch is attached.
Original comment by martinha...@gmail.com
on 9 Jun 2011 at 8:00
Attachments:
Patch fixes the issue.
Original comment by mi...@nowlive.ro
on 24 Dec 2011 at 6:08
Fixed
Original issue reported on code.google.com by
barryruf...@gmail.com
on 20 Mar 2010 at 9:52