main logo
Subject: Re: [V4RB] How to avoid crashes with corrupted db
Author: Ruslan Zasukhin
Posted: 2001/07/31 05:54:51
 
View Entire Thread
New Search


on 7/31/01 11:08, Joerg Pressel at joergp At three-2-one .D.OT com wrote:

> After a crash of my app in rare cases the database gets corrupted - problem
> is, when I try to re-open this db, my app crashes with error 2 or 3.
>
> This happens at VDatabase.Open( myfile ) - it seems there is nothing I can
> do about it.
>
> Opening the same db in ViSQL works fine...

What mean fine ?

It open without crash ?

or you can even work with all data ?!
Then where is corruption ?

> So I think it has to be something to do with the structure of the corrupted
> file loaded to my database class that does not fit my Tables/Fields.
>
> Any ideas how to prevent that kind of crashes? Should I Open the file in a
> generic VDatabase, first and check if tables and fields are OK?
>
> Would be nice if Valentina could be aware of this - Ruslan I'll send you an
> example -

I am going to add flag 'FineClose'
this allow me on open to see that db as not closed fine and start
a) diagnostic
b) repair

Also this flag will allow to make Open() much faster than now if db was
closed fine. Because right now Valentina in any case check a little each
index of database.


--
Best regards,
Ruslan Zasukhin

-------------------------
Paradigma.

e-mail: ruslan@paradigmasoft.com
web : http://www.paradigmasoft.com

To subscribe to the Valentina mail list
send a letter to valentina-on At lists .D.OT macserve.net
 
©2001 Ruslan Zasukhin
<-- Prior Message New Search Next Message -->