Good Morning,

I am attempting to use the built in XDOMxxx commands in UniData to
create XML records.

Everything seems to work great until I try to process a great number of
records.

The code I use looks something like this

XDOMCreateRoot - Creates blank DOM
XDOMCreateNode - Create ROOT
XDOMAddChild - Adds ROOT to the DOM

For each customer in the list

        XDOMCreateNode - Create General Ledger transaction
        XDOMAddChild - Adds General Ledger transaction to the root

        For each field in the list of fields to add to the XML
                XDOMCreateNode - Create an attribute node
                XDOMAppend - Append the attribute to the General Ledger
transaction

        Check the number of records processed to keep the XML from
getting too big

        If customer count > 100
                XDOMWrite - Write to a file
                XDOMClose - Close the DOM - Should release memory
                XDOMCreateRoot - Creates new blank DOM
                XDOMCreateNode - Create new ROOT
                XDOMAddChild - Adds new ROOT to the DOM

After the last customer
XDOMWrite - Write to a file
XDOMClose - Close the DOM - Should release memory

After processing about 250,000 records, UniData aborts with the message

99 Exception happened in function XDOMCreateNode 
                                                 
Program Aborted                                  
insufficient memory, requested size = 46064.     

Apparently, when I close the DOM, it is not releasing memory.

Is there anything I am missing?  Or, is there a way to force the XML
memory to be cleared?

Thanks in advance,

Doug
--------------------------------------------------------

This e-mail is for the use of the intended recipient(s) only. If you have 
received this e-mail in error, please notify the sender immediately and then 
delete it. If you are not the intended recipient, you must not use, disclose or 
distribute this e-mail without the author's prior permission. We have taken 
precautions to minimize the risk of transmitting software viruses, but we 
advise you to carry out your own virus checks on any attachment to this 
message. We cannot accept liability for any loss or damage caused by software 
viruses. Any views and/or opinions expressed in this e-mail are of the author 
only and do not represent the views of Epicor Software Corporation or any other 
company within its group.


This message has been scanned for malware by Websense. www.websense.com
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to