Versions des environnements
>It isn't. If you instantiate the class with newobject or with SET CLASSLIB TO, you'll allocate memory either way. What I failed to clarify is that if you instantiate the class everytime you needed, there is overhead involved vs. doing it only once.
It's not a memory issue, it's a performance issue. NEWOBJECT() is slower because it has to find the specified library, open it (doing all the necessary parsing), instantiate the class, and close the class library. With SET CLASSLIB TO, you skip all but the instantiating task when you CREATEOBJECT().
Doug
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement