TIP, how to fight with corrupted indexing
Ruslan Zasukhin
sunshine at public.kherson.ua
Tue Feb 4 13:33:27 CST 2003
on 2/4/03 11:47 AM, Totte Alm at totte at code66.se wrote:
>>> My problem is that I use Valentina DBs as documents. The user can
>>> have
>>> hundred or even thousands databases on their drive, and I've seen
>>> that even
>>> with 4-file set, if teh app crashes before correct database close, it
>>> corrupts the index and when I try to read a Picturedata from the
>>> database, I
>>> get garbage pictureadata back that crashes DrawPicture(). If I
>>> rebuild the
>>> index, it works.
>>
>> But how index can affect BLOB data?
>> I see only one way why it crashes. Record was deleted before crash.
>> Yes?
>>
>> Totte, may be you need add more Flushes after Updates()?
>>
>
> Nope, was NOT deleted, but blobdata was updated. It looks like the
> trashed index points to deleted blobdata, which causes the crash.
Than more strange.
Index point on RecID itself.
And grapgic field do not have index, correct?
I think this is some side effect.
--
Best regards,
Ruslan Zasukhin [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com
To subscribe to the Valentina mail list go to:
http://listserv.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------
More information about the Valentina
mailing list