Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class Location keeps changing
Message
De
16/05/2003 13:40:03
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00789189
Message ID:
00789352
Vues:
26
>Hey all,
>
>I am having a very weird, frustrating problem...
>
>Every once in a while when I go to run a form (that actually is based on a VCX) I start getting all kinds of errors about it not being able to find a certain base class. Problem is, it is looking for a base class that I did not set.
>
>For example, the base class location for the forms getting created (the main form creates a child form) is called GRQBASE.VCX. When this error happens, that location has been changed to "..\..\kfisbase.vcx" or something of that nature.
>
>This is NOT a path error. When I go to look at the VCX in the Classloc field (opening the VCX as a table), the Classloc field has ACTUALLY CHANGED to the "..\..\kfisbase.vcx" value. That VCX exists, but it certainly won't have the class the form is looking for (it is a different project). Sometimes I have both projects open at once, but surely my VCXes aren't just randomly swapping data between them?


I wouldn't call it "random", but it more than likely has to do with a caching issue. If you do have the two projects open at once, you very well might be causing your problems. I've seen it with classes that are named the same, but stored in differenct .VCX files between the different projects.


>
>I do not manually mess with the VCXes, I am not using the object browser or having any other flaky problem. It is just that once in a while the Classloc changes out from under me (on just two or three classes within the VCX). When I manually go in and change it back to what it should be, my forms come up no problem.
>
>What could be causing this? Has anyone else seen random class locations changing? Any solutions or practices to avoid this happening?


About the only real solution I was able to come up with, was not to open the differrnt projects in the same instance of the VFP IDE. If you really need to work on two different projects, open a separate copy of VFP IDE for each one.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform