Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating objects drain memory
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00085047
Message ID:
00085195
Vues:
32
>Is there some reason you cannot create those objects once and keep them. Then just call their methods when you need to. I could guess that the creation and destruction of the objects is causing memory to become fragmented over time. Creating them once and leaving them there until you are really done with them would be a more solid approach (at least as far as internal memory management goes).

Well, I guess maybe I need to rethink my design. It would be possible to create them once. It would mean merging my classes into one class. I thought having separate classes was the more object-oriented approach, but I guess I need to take the practical approach.

BTW, if what you suggest is true about fragmented memory, it sounds like that is bug in FoxPro.

Thanks!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform