RE: EDB error=20

new topic     » topic index » view thread      » older message » newer message

Rubens Monteiro Luciano wrote:
> 
> 
> Hi;
> 
> I'm getting this error in my EDB file when I try to delete a 
> register.
> 
> ( if db_record_key(i) = -9 then  db_delete_record(i) end if )
> 
> I suspect that my edb file is corrupted.
> I can open it in the excellent Matt Lewis EDB Browser, and see that 
> the last register entered is key:  -9  and register: -10.
> This values are impossible to exist in my program, so I believe 
> this could be a crash in the computer or media.
> 
> The problem is how to delete this register or to write a piece of 
> code to check the edb file and prevent this.
> 

By 'register' I assume you mean 'record'?  Could you tell us the value 
of 'i' when the crash occurs?  If you have a corrupted file, you might 
try compressing the db, since this rewrites the data into a fresh file.  
It should clean up any corrupted pointers in the file.  Then you should 
be able to delete the record.  Also, have you tried deleting the record 
from within EDB?  Does it also crash?

Matt Lewis

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu