dbTalk Databases Forums  

Foxpro 2.6 Index files get corrupted

comp.databases.xbase.fox comp.databases.xbase.fox


Discuss Foxpro 2.6 Index files get corrupted in the comp.databases.xbase.fox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
dchris
 
Posts: n/a

Default Foxpro 2.6 Index files get corrupted - 10-30-2003 , 12:27 PM







Hello everybody



we have a problem with Foxpro 2.6 Index Files.



The application was running fine for a long time but suddenly the index
files on one of the tables gets corrupted when I just touch them...



This happens only to older records (like one month old) if I copy the
record and work on the copy everything is fine.



It looks like the index file is corrpupt even before it gets obvious to
the user (record appears doubled). Querys involving this record fail.
The record seems to be fine if I open it with VFP6 and browse it with
the according index.

If I check it parallel in the application and touch the record from
there the index gets corrupted imediatly.



Does anybody know what might cause this behaviour or has anybody
discovered something similar?



I appreciate any hints...



Dennis


--
Posted via http://dbforums.com

Reply With Quote
  #2  
Old   
Rick Bean
 
Posts: n/a

Default Re: Foxpro 2.6 Index files get corrupted - 10-30-2003 , 01:41 PM






Dennis,
Are you using .IDX indexes, or .CDX indexes? Are you or have you ever recreated the indexes in VFP?

Rick

"dchris" <member46409 (AT) dbforums (DOT) com> wrote

Quote:
Hello everybody



we have a problem with Foxpro 2.6 Index Files.



The application was running fine for a long time but suddenly the index
files on one of the tables gets corrupted when I just touch them...



This happens only to older records (like one month old) if I copy the
record and work on the copy everything is fine.



It looks like the index file is corrpupt even before it gets obvious to
the user (record appears doubled). Querys involving this record fail.
The record seems to be fine if I open it with VFP6 and browse it with
the according index.

If I check it parallel in the application and touch the record from
there the index gets corrupted imediatly.



Does anybody know what might cause this behaviour or has anybody
discovered something similar?



I appreciate any hints...



Dennis


--
Posted via http://dbforums.com

Reply With Quote
  #3  
Old   
dchris
 
Posts: n/a

Default Re: Foxpro 2.6 Index files get corrupted - 11-06-2003 , 04:58 AM




Hi Rick



we have CDX Index files



I tried allready different ways to fix the problem:



- reindex in fox 2.6

- reindex in VFP 6.0

- copy to with CDX type fox2x in VFP 6

- copy to with CDX in fox 2.6



The last copy to in fox 2.6 seemed to fix the problem but this was only
temporary. A few days later I got the same Problem again.



Now we tried something new:

- rewriting record by record field by field to eliminate the possibility
of corrupt fields in fox 2.6

But this did not fix the problem either.

It seems as if our Surrogat keys contain something that is not
allowed or corrupting the index allthough the key looks absolut OK in
the browse...







Thanks for any help



Dennis


--
Posted via http://dbforums.com

Reply With Quote
  #4  
Old   
Alexandre Peshansky
 
Posts: n/a

Default Re: Foxpro 2.6 Index files get corrupted - 11-24-2003 , 02:40 PM



On Thu, 06 Nov 2003 05:58:28 -0500, dchris <member46409 (AT) dbforums (DOT) com> wrote:
[ quoting context restored; reformatted ]
Quote:
On Thu, 30 Oct 2003 14:41:41 -0500, "Rick Bean" <rgbean (AT) NOSPAMmelange-inc (DOT) com> wrote:
On Thu, 30 Oct 2003 13:27:30 -0500, dchris <member46409 (AT) dbforums (DOT) com> wrote:
Hello everybody

we have a problem with Foxpro 2.6 Index Files.

The application was running fine for a long time but suddenly the index
files on one of the tables gets corrupted when I just touch them...

This happens only to older records (like one month old) if I copy the
record and work on the copy everything is fine.

It looks like the index file is corrpupt even before it gets obvious to
the user (record appears doubled). Querys involving this record fail.
The record seems to be fine if I open it with VFP6 and browse it with
the according index.

If I check it parallel in the application and touch the record from
there the index gets corrupted imediatly.

Does anybody know what might cause this behaviour or has anybody
discovered something similar?

I appreciate any hints...

Dennis,
Are you using .IDX indexes, or .CDX indexes? Are you or have you ever recreated the indexes in VFP?

Rick
Hi Rick

we have CDX Index files

I tried allready different ways to fix the problem:
- reindex in fox 2.6
- reindex in VFP 6.0
- copy to with CDX type fox2x in VFP 6
- copy to with CDX in fox 2.6

The last copy to in fox 2.6 seemed to fix the problem but this was only
temporary. A few days later I got the same Problem again.

Now we tried something new:

- rewriting record by record field by field to eliminate the possibility
of corrupt fields in fox 2.6

But this did not fix the problem either.

It seems as if our Surrogat keys contain something that is not
allowed or corrupting the index allthough the key looks absolut OK in
the browse...

Thanks for any help

Dennis
Dennis,
you missed _the_ way to fix corruption in FoxPro indexes: delete all index tags;
re-create indexes. All of your ways above just propagate the problem, doing
nothing to fix it.
--
[ When replying, remove *'s from address ]
Alexandre Peshansky, Systems Manager, RUH, NY
(note last name spelling change)


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.