Out Of Memory

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



VB6
Yes I am getting old but in this case it is a VB6 problem.
I get an out of memory error.
I am trying to merge a bunch of data from two hidden ListViews to display in
a msflexgrid.
During the merge process I am loading the grid and that is where the error
occurs.
I think I am going to have to rewrite it all but not sure how to approach it.
Not sure if the is some limit on the grid or VB6 in general.
The row count is ~20,000.
Using MSFLEXGRID from SP6

Should I write the merge data to a file then load the grid or what?
Would it help to remove listview as I write to the grid? From previous
posts it seems that the memory is not reallocated after that.
What is the limit on the grid?
Would VB handle it better if I used string arrays?
Interestingly, the program gives the error message, stops and accepts
commands to work on the existing data although all the data has not been
merged.
Did it do cleanup by itself?
What works best with Virtual Memory? Controls, Arrays or do I have to go to
files?
Suggestions please.

.



Relevant Pages

  • Re: Out Of Memory
    ... Yes I am getting old but in this case it is a VB6 problem. ... I get an out of memory error. ... Not sure if the is some limit on the grid or VB6 in general. ... Would VB handle it better if I used string arrays? ...
    (microsoft.public.vb.general.discussion)
  • Re: Binary data in multiple adjacent files
    ... Mapping it doesn't eat any working set except, possibly, for the ... It's not faulted into physical memory. ... You also get a whole "page fault cluster" faulted in. ... grid sections immediately north, south, northeast, northwest, southeast ...
    (comp.os.vms)
  • Re: Graphics - need to draw to the screen and then erase it
    ... (I used the words "memory DC" to search for them). ... > and then use lines to create a grid. ... So the user presses on the display with the stylus and a line ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: PolyLine and autoscrolling canvas
    ... at right bottom so the graphic starts from right to left but it ... flickers. ... So I created a memory DC with CreateCompatibleDC but looks like memory ... // Grid - Horizontal lines ...
    (microsoft.public.vc.mfc)
  • Re: Loading those huge CSVs.
    ... > a) use a TDrawgrid instead of a TStringgrid and use that as a virtual ... > grid would be able to display the first load of lines very fast, ... > you can use a number of tricks to cut down on memory use and load time. ...
    (borland.public.delphi.language.objectpascal)