Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Out of Memory using Object
Message
 
 
À
06/08/2008 17:06:50
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:
01337058
Vues:
17
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.
>
>I tried this:
>
>
>_SCREEN.oXML = CREATEOBJECT("Microsoft.XMLHTTP")
>
>
>But get an error that oXML is not found. What am I mucking up?

Try using AddProperty either as a method or a function to add new property to the _screen object.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform