While using the XDOM functions I managed to kill our development Universe (10.1 on 
Win2k) server. It appears that XDOMOpen uses the required memory to load the XML, 
however XDOMClose does not seem to release it. The only way I seem to be able to 
release the memory on the server is to log off the port I'd run the process on. I was 
processing a fairly large XML string, and loading it a number of times, which brought 
the issue to my notice. I've included some example code, which when run increases the 
memory usage for my process, but doesn't release it.

Has anyone else witnessed this? And, more importantly, does anyone have an answer to 
releasing the memory?

$INCLUDE UNIVERSE.INCLUDE XML.H
*
OPEN 'XML.TESTFILE' TO XML.TESTFILE ELSE CRT 'Cannot open XML.TESTFILE' ; STOP
READ XML.STRING FROM XML.TESTFILE, 'SOL.XML' ELSE PRINT 'Cannot read SOL.XML from 
XML.TESTFILE' ; STOP
XML.STRING = CHANGE(XML.STRING,AM,'')
STATUS = XDOMOpen(XML.STRING,XML.FROM.STRING,XML.HANDLE)
IF (STATUS) THEN ERRMESS = 'Unable to load XML' ; GO OUT.ERROR
STATUS = XDOMClose(XML.HANDLE)
IF (STATUS) THEN ERRMESS = 'Unable to close XML handle' ; GO OUT.ERROR
STOP

Regards
Malcolm


IMPORTANT NOTICE.
This communication is intended solely for the person (s) or organisation to whom
it is addressed.  It may contain privileged and confidential information and if
you are not the intended recipient (s), you must not copy, distribute or take
any action in reliance on it.  If you have received this e-mail in error please
notify the sender and copy the message to [EMAIL PROTECTED]
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to