Discussion Locked

Deplhi table records disappear

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am a beginner delphi programmer.
I am developing a database program using paradox.
Everything is going well, but everytime the PC is shut down accidentally(eg. no electricity), some of last records has gone...
Pls help me...what is the problem??

1 reply

by eareas

Hi ,
The cause for your problem is that while you are updating your files , the last changes are not recorded directly to the media but transfered to a internal file buffer. After some time , the OS or the ODBC driver transfers the information to the files. If something wrong happens during this time , you loose the buffer and the updatings too. It happens no matter the language you use.

I am not a active delphi programmer but I've worked with others languages and in all cases there were a command to update the contents of internal files buffers to the media ( commit, flush). Maybe Delphi and ODBC driver ( acessed by some Delphi method) has a similar command or instruction too.

I hope it helps.

This discussion is closed to new replies.