Re: creation of a large XML file using vb 6.0 throws out of memory error.



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
.



Relevant Pages

  • Re: Support of a large table
    ... >> display different parts within different controls of a vb app. ... >> One part of the XML file identifies information about processor cylces. ... >> demanding on memory. ... > Try to open it in vb with DOM first. ...
    (comp.lang.basic.visual.misc)
  • Re: Online, Offline, Disconnected applications.
    ... XML file, ... Using MSDE is the best way. ... I've looked at both the TaskVision application> and the Offline Application Block for for guidance. ... My main concern here is the scalability,> efficiency, and memory usage when the application is running. ...
    (microsoft.public.dotnet.framework.adonet)
  • How2 Flush to Disk DataSet.WriteXML(FileName,XMLWriteMode.WriteSch
    ... A user session consists of long transactions where data is ... wrong with the client machine or application the memory data is lost. ... the XML file is there. ... But if I CTL+AlT-Del and say end task from the task manager, ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: remoting object access information from local xml file frequen
    ... it is efficient in using memory .. ... will it hold data in IIS memory automatically after retreiving from the ... > I would do is create a class that loads the xml file settings into the ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: XmlDataDocumentDataSet Memory Footprint, Feedback appreciated.
    ... I suggest you use a memory profiler to track where your memory is consumed. ... > size of the xml file would be greatly appreciated. ... > namespace DataExtract ...
    (microsoft.public.dotnet.languages.csharp)