Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Out of Memory using Object
Message
 
 
To
06/08/2008 17:06:50
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01336884
Message ID:
01337058
Views:
18
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
Previous
Reply
Map
View

Click here to load this message in the networking platform