Link to home
Start Free TrialLog in
Avatar of jacorv
jacorvFlag for United States of America

asked on

Visual Foxpro .sct is missing or invalid

When I open some of the forms in the project and make a change in the form designer and attempt to save changes I get the error message:

Memo file c:\oe6\forms\formname.sct is missing or invalid.

I click OK to return to the designer. I attempt to close the designer and at this point if I click No to not save changes I get "File is not open" error and cannot get out of VFP without ending it using Windows Task Manager. The form seems to not be missing any of it properties.

I finally found that when I open an existing form in the form designer and save to a new name I can save it and further changes on the new copy work.

Question: What may have caused this and is there a way to fix the forms without saving to a new name, deleting original, and saving back to the original name. I have 125 forms.

Here are my details:
Using VFP 9 sp2
uses Stonefield Database Toolkit
I have moved project and database a couple times.
I recreated the project bringing in all referenced items.
Running VISTA.
SOLUTION
Avatar of Olaf Doschke
Olaf Doschke
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It could be that the file or folder is readonly or you do not have access to modify it. It seems you have create access but not modify.
Avatar of jacorv

ASKER

I run Kaspersky Pure so hopefully no virus, but I will run a full scan. Now that I think about it I may have had a virus before I installed Kaspersky 7 months ago. That is about the same time that I started having problems. I put the project aside since then, but now need to make changes. In my research I saw a reference to virus affecting sct files but dismissed it because I now have better protection. I will download and run processmonitor tomorrow (its too late tonight)
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jacorv

ASKER

When I disabled Kaspersky the problem went away (so far).
I had already checked the owner and rights of the files, but a good suggestion.
I have set vfp9.exe as a trusted application and set rules (1) not to scan opened file (2) not to monitor app activity (3) not tp monitor child app activity and (4) not to scan network traffic. Maybe that is overkill? I also excluded my development folder and sub folders but that by itself did not solve problem.

Thank you so much to all of you for your answers as multiple answers even if they are similar is very helpful.

If I still have problems, I will stop using Kaspersky. I see other comments that end users may have problems with the Kaspersky and one should put the VFP applications in trusted apps. I wonder if my clients have not had problems because all their machines are XP.
Avatar of jacorv

ASKER

Thank you all so much
Excluding the development folder should be sufficient. But then there today are so many components in modern antivirus suites, that it gets less and less transparent what configuration settings influence what parts of an AV suite. There may be a seperate configuration option saying to still monitor all files with a heuristic scanner, live guard or whatever.

Process monitor as said can say more on what is done on a file or folder.

You turned off quite a lot of things. I wouldn't for example turn off network traffic scans in general. If this is only the network traffic of vfp9.exe that's perhaps acceptable. You can let AV monitor child process activity, vfp9.exe does not have child processes to my knowledge. If it has, they're not doing the scx/sct file access, that surely is done by vfp9.exe

Also you talk of a developer specific problem, an vfp application indeed can have problems with intercepted access of data files.

Bye, Olaf.