Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Out of Memory using Object
Message
De
06/08/2008 12:54:50
 
 
À
06/08/2008 10:36:21
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01336884
Message ID:
01336959
Vues:
16
This message has been marked as a message which has helped to the initial question of the thread.
>Had this before, but only when running many thousands of times, but this time a different object is getting run no more than 50 times before I get the "out of memory" error. This is essentially what I have, though there is much code where those three dotted lines are. I can't have our users running into this and I need to use this particular object. What can I do?
>
>
>oXML = CREATEOBJECT("Microsoft.XMLHTTP")
>.
>.
>.
>oXML = .NULL.
>RELEASE oXML
>
Maybe you could instanciate it just once, and add a global reference e.g. _Screen.MyXMLHTTPObject

Then, when you need to use it, re-initialize it rather than re-create it.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform