From: Emilio P. <ep....@ce...> - 2005-03-21 15:21:22
|
I try since few days to work on databases in JET3 format. The result is always a segmentation fault; it seems to work only the db-ver utility. I saw the mail from Gordon MacQueen and the answare by Jeff Smith on 3-11-2005; and hoped there was the solution, but it seems no. Debugging the sources I find that the problem arises in the function mdb_read_row: here the call to mdb_find_row(mdb, row, &row_start, &row_size) puts a negative value into row_size at the end of the database. I jump over the problem modifying data.c as follows .......... 255 lookupflag ? "[lookup]" : "", 256 delflag ? "[delflag]" : ""); 257 #endif 258 /** Patch by Cesip */ 259 if ( row_size < 0 ) 260 return 0; 261 /** End patch **/ ................ Is this solution valid in every case ? or does exist a better generalized one ? Thank you for attention. Emilio Primi Cesip srl ep....@ce... |