main logo
Subject: Re: [V4RB] How to avoid crashes with corrupted db
Author: Joerg Pressel
Posted: 2001/07/31 10:20:04
 
View Entire Thread
New Search


Hi John,

> I had a similar thing "happen" to me. Everything else could open my datab=
ase
> except the program that I wrote which constructed it. I finally chased th=
e
> problem down to a slight change in the db structure (didn't remember). I
> used VAPP to compare the db structure to what was coded in my program. Yo=
u
> might check it. I hope all goes well.

I did not change the db structure - I think Valentina should not crash even
if there is a problem with the structure or the file is corrupted.

Problem is that my app remembers what databases were open and try to reopen
them at next start. Now if a user experiences a crash with the app, the db
gets corrupted and everytime the app is launched, it crashes again, because
it tries to re-open the db. Only workaround for the user is to delete the
prefs. That's bad, because some unexperienced may think the app itself is
crap (well, if it crashes at first it is mostly my fault) and leave it alon=
e
/ don't license it.

Cheers,

J=F6rg

____________________________________________
three-2-one interaktive Medien GmbH

joergp /at/ three-2-one .D.O.T com
http://www.three-2-one.com
fon: +49 2151 319450
 
©2001 Joerg Pressel
<-- Prior Message New Search Next Message -->