Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing deprecated classes and classlibs
Message
De
07/06/2016 09:14:55
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01637018
Message ID:
01637054
Vues:
57
>Thank you. I was thinking the same approach too. However, I have places where some objects are instantiated in code; therefore, at run time I may still get errors. So, thoroughly testing is still required.
Hi,

Instantiate GoFIsh4 - or even better Thor with GoFIsh4
now you can search thourghout your whole project for CREATEOBJECT or ADDOBJECT a.s.o to find where your classes are called.
Than you can populate your Setclasses procedure file with these and consequently: all classes are preploaded.
Remove ( donot delete ) all your classes from your project and rebuilt. Only those classes now presented in your project file belong to this project, all others can be safely removed = deleted from the project folder.
One word of precaution: before finaly removing them, rename them first with something like a 3times prefix underscore ( ___ ). Than rebuilt your project and exe. Run it for several times and only after enough testing you remove the classe marked with ____. In case you encounter errors classes cannot be found simply rename them with their old names and, important, add them also to your Setclasses procedure file.

Regards,

Koen
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform