Trapping index errors
jda
jda at his.com
Sun Dec 19 13:08:52 CST 2004
> I have a db with an index error of 537857 ($83501) -- Inventory
> > corrupted for index "%S".
>>
>> I've tried trapping for a number of different EVErrors, and even
>>
>> if theError.ErrorNumber >= EVError.IndexByteReclistCorrupted and
>> theError.ErrorNumber <= EVError.IndexPageInventoryCorrupted then...
>
>This should work.
>
>Look into XML files.
>BTW, use for this MS IE. It can show XML in nice way.
>Or any other good XML Viewer
>
>Errors make groups.
>They are sorted.
>So range search should work!
Good.
It turns out that you can't repair this particular error by
reindexing -- the db throws the same error when you try to open it
again.
I wonder if this is something that Valentina should deal with itself on
myDatabase.open
I mean, index errors should not prevent you from opening the
database, and could be repaired by V itself by removing the indexes
and forcing the creation of new indexes -- what do you think?
>
> > Ruslan, what enumerated constants would you suggest I use to trap for
>> repairable index errors?
>
>And of course I need way to reproduce errors
>
It happens sporadically after lots of developing/debugging, so I'm
afraid I have no way to reproduce this particular error. If I find
one, of course I'll report it.
Jon
More information about the Valentina-beta
mailing list