Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Program error in hook code
Message
De
09/10/2008 08:12:15
 
 
À
09/10/2008 06:43:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de projet
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2008 Server
Database:
Visual FoxPro
Divers
Thread ID:
01352927
Message ID:
01353768
Vues:
19
>>Hi,
>>
>>In the INIT of a project hook I have:
FOR EACH loFile IN APPLICATION.ACTIVEPROJECT.FILES
which has been working for years. Now I get a 'Property FILES not found' error on this line. The debugger shows Application.Project appears to be the valid and correct project; .FILES is an object but .FILES.Count gives 'Expression could not be evaluated'. This isn't project specific - I get the identical error in another project. Also, at least AFAICS, there's no #INCLUDE that could mess this up and if I step out of the code the project opens normally with all files listed.
>>
>>My VFP is a bit rusty - any suggestions as to what might cause this.
>>TIA,
>>Viv
>
>Viv,
>
>For what it's worth
>http://groups.google.com/group/microsoft.public.fr.fox/browse_thread/thread/1b6e11fe85feb50f/f34276daf564715b?lnk=st&q=activeproject.files+error+projecthook#f34276daf564715b
>
>Exactly the same problem
>
>Errors
>- class not registered
>- Files is empty
>
>It happens once a month and when it happens it takes a while (before the error disappears)
>
>Solution - none

Hmmm. First time it's ever happened to me. Showed no sign of going away either :-{
As mentioned elsewhere I ended up uninstalling/reinstalling VFP at which point this problem (and the problem with the code reference tool) went away. I don't think the problem was with the project files. I was getting the same problem with more than one project and they were all simultaneously cured. My instinct on these occasions is to keep digging to identify the source of the problem - in this instance to practicalities precluded it so I guess I may never know.....

Best,
Viv
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform