Just to update this for any future people that are searching the UT. I have upgraded to VFP 8.0 and the ALINES GPF still occurs. So this bug was never fixed. I have experienced a C000005 error on the ALINEs portion of my code every so often. It is very frustrating as we have a process that can run several hours and you come back only to find that the VFP has experenced a C00005 and indicates the ALINES line number of the code. I am running VFP 8.0 SP1 with XP professional.
>Hi James,
>
>>There is a bug in ALINES() that periodically causes a GPF in VFP.
>
>It happens when the string ends in CHR(13) and VFP allocated it at a page boundary. There's code in VFP that checks for a CHR(10) when finding a CHR(13) without checking if its processing the last character. I found this bug a year ago, or so, and it has been fixed in VFP 8. There's a similar caused bug in TEXTMERGE() in VFP 7 which causes TEXTMERGE() to crash if the string doesn't end in CHR(0).
>
>Christof
Bret Hobbs
"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope