Peter,
I've seen this problem with PRG based classes. No forms involved.
>>>>Occasionally I get an error 'Cannot create file c:\whatever\whatever.fxp'. Commands like CLEAR ALL and CLEAR PROGRAM don't help. Also, the fxp-file cannot be deleted. The only thing that seems to help is to QUIT VFP and then restart.
>>>>
>>>>Who knows the cause?
>>>
>>>Are you using a version prior to VFP7?
>>>
>>>VFP7 contains the fix for a similar bug which occurs in previous VFP versions.
>>
>>- It's the same in VFP6 and VFP7.
>>- I've closed and superclosed any and all debug facilities.
>>- I've set proc to
.
>>- I've set libr to .
>>- I've done CLEAR PROGRAM / ALL / DLLS /
>>- I've tried to toggle various SETtings.
>>- I've disabled the virus checker.
>>
>>Nothing helps. The only thing that helps is quitting and restarting VFP.
>
>One more observation: The program is called from a method of a form. A colleague reported similar 'cannot create fxp' errors and stated that all cases occurred when called from a form.
>
>Can other people confirm this clue?
Daniel