I used to get this quite a lot in VFP 5, on an older machine.
To get round it I used to open the project, read the error - which was almost always in a form, open the form, open any part of any code in the form and add a blank line (or take one away if I had added one previously) then save the form.
Sometime the error would recurr on the next compilation - but after that it was normally ok.
No idea as to to the cause!
Regards
Griff
Keep [Smile]ing