Board index » delphi » Help, I'm loosing Paradox-records after a computer-crash

Help, I'm loosing Paradox-records after a computer-crash

I'm currently writing a database-application in Delphi 3 for Windows 95.
I'm using Paradox-tables.

When the computer crashes, I loose all the records that have been added
since the computer was started, even if the tables were properly closed.

This is bad enough, but since this application logs machine-data, which
can never be recovered, and since the computer might be on for weeks on
end, I would really like to know how to prevent this.

Thank you very much inadvance for any reply,

Silvia Janssen
j...@wxs.nl

 

Re:Help, I'm loosing Paradox-records after a computer-crash


Quote
Silvia Janssen wrote in message <34c9c497.7653...@news.pi.net>...
>I'm currently writing a database-application in Delphi 3 for Windows 95.
>I'm using Paradox-tables.

>When the computer crashes, I loose all the records that have been added
>since the computer was started, even if the tables were properly closed.

>This is bad enough, but since this application logs machine-data, which
>can never be recovered, and since the computer might be on for weeks on
>end, I would really like to know how to prevent this.

Silvia:

Take a look at Borland's TI 2953, "BDE: Writing Buffer to Disk."
You can use an Application.OnIdle event to call DbiUseIdleTime
to allow the database engine to save "dirty buffers" to disk.

efg
_________________________________________________

Earl F. Glynn          EarlGl...@WorldNet.att.net
MedTech Research Corporation
Lenexa, KS  66219  USA

Re:Help, I'm loosing Paradox-records after a computer-crash


Quote
Silvia Janssen wrote:
> I'm currently writing a database-application in Delphi 3 for Windows 95.
> I'm using Paradox-tables.

> When the computer crashes, I loose all the records that have been added
> since the computer was started, even if the tables were properly closed.

I don't believe this.  If the table was closed, it was committed.
Otherwise the records have not been added prior to closing.  Have you
checked that they've been added?  Have you looked at committing your
changes using DbiSaveChanges?

Andrew
--
Andrew Gabb
 email: ag...@tpgi.com.au
 phone: +61 8 8342-1021
   fax: +61 8 8269-3280
Technology Australasia's website is at http://www.taa.com.au
-----

Re:Help, I'm loosing Paradox-records after a computer-crash


Quote
In article <34CA76F2.C53B...@tpgi.com.au> Andrew Gabb <ag...@tpgi.com.au> writes:
>> I'm currently writing a database-application in Delphi 3 for Windows 95.
>> I'm using Paradox-tables.

>> When the computer crashes, I loose all the records that have been added
>> since the computer was started, even if the tables were properly closed.
>I don't believe this.  If the table was closed, it was committed.
>Otherwise the records have not been added prior to closing.  Have you
>checked that they've been added?  Have you looked at committing your
>changes using DbiSaveChanges?

DbiUseIdleTime?

Other Threads