>>>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