Re: creation of a large XML file using vb 6.0 throws out of memory error.
- From: pawankhadpe@xxxxxxxxx
- Date: Wed, 19 Mar 2008 03:50:13 -0700 (PDT)
On Mar 17, 1:04 pm, Bob O`Bob <filter...@xxxxxxxxxxxxxxx> wrote:
pawankha...@xxxxxxxxx wrote:
i have designed a form in Vb 6.0 application ,which when executed
exports data in XML file. the size of a XML file can grow as large
as it can ( approximately 1.5 GB) .
i have used textstream and filesystem object to create and write data
to the XML file.
But when the XML file size reaches around 28 MB it gies me "Out of
Memory " error.
I'm running the Application on Windows 2000 terminal machine.
i have checked the Vb code thorougly and have taken care that all the
resources are destroyed every now and then.... i.e when they are not
required.
Still now i have not got any solution on this . can any one pls
suggest me a solution to this...ASAP
I routinely do I/O with files over 400MB, but no way would I ever
even consider trying to get FSO to deal with anything bigger than
maybe half a megabyte.
Ditch those half-baked objects and use real VB file methods.
Bob
--- Hide quoted text -
- Show quoted text -
Hi Bob,
thankz fr ur reply.
As a resort , i tried breaking the data into many XML files.
I have written a function in VB which creates 1 xml file per
iteration.
i.e around 900-980 kb's of data per XML file.
but when it creates 524th file it again gives me "Out of Memory"
error.
What ever resources are used are private to the function and destroyed
within the scope of the function..including textstream and filesystem
object.
But it still gives me the error.
i have also noted that in the task manager , the Application keeps
occuping huge space as it keeps executing and memory resources keep
decreasing.
I have tried all possible wayz .. but nothing seems to work .
wht can be a solution on this!!!!
pls suggest
.
- Follow-Ups:
- References:
- Prev by Date: Re: Strange shift position of Printer.Print
- Next by Date: Re: Strange shift position of Printer.Print
- Previous by thread: Re: creation of a large XML file using vb 6.0 throws out of memory error.
- Next by thread: Re: creation of a large XML file using vb 6.0 throws out of memory error.
- Index(es):
Relevant Pages
|