Re: Out of Memory Problem in VB 6.0 Application.



Dear Mike/Michael,

Thanks for your replies.

My architecture is designed in such a way that all my processes will run in
the memory, since all my process are computation intensive and I get good
results (in terms of speed) if I do every thing in the memory. Every time if
I go for file read/write and db read/write kind of stuff, it would slow down
my computation process dramatically.

I was surprised to see this error eventhough I had 4 GB of ram, good
processor and enough HDD capacity. To be frank, we asked our customer to buy
this kind of machine and he is facing this problem after a successful UAT.

Can you guys help me out to get rid of this error.

Awaiting for your reply.

--
Thanks and Regards,

Peri

"Mike Williams" <Mike@xxxxxxxxxxxxxxxxx> wrote in message
news:dgig0t$msc$1@xxxxxxxxxxxxxxxxxxxxxx
> "Peri" <Peri@xxxxxxxxxxxxxxxxx> wrote in message
> news:eL3nP57uFHA.3100@xxxxxxxxxxxxxxxxxxxxxxx
>
> > For every entry in the pbltypDTSRiskArray(), dblRAValue()
> > would contain 500 entries. The number of entries in
> > pbltypDTSRiskArray() is around 30000.
>
> I've just tried setting up a similar array on my own machine (WinXP Home,
> 0.5 GB RAM) and I can get about ten times as many elements as you are
> getting (about 320000 before I get Out of Memory). By my reckoning that's
> about 1.2 GB of data, so such arrays are obviously able to use the Windows
> swap file (which on my system is set to a maximum of about 0.8 GB).
> Obviously, different operating systems and different setups will behave
> differently. I do wonder, though, why you should require all of this data
in
> memory (either virtual or real) all at once.
>
> Mike
>
>
>


.



Relevant Pages

  • Re: Fast string operations
    ... Looping: I thought looping over arrays in managed code was "slow" ... array handling and such. ... The problem with TrimHelper is that it always returns a new string instance. ... The customer perceives this as a memory leak. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: High Memory Consumption of Classes and Arrays
    ... Only the array itself has overhead. ... memory as a reference type. ... > least consume 40 bytes of memory. ...
    (microsoft.public.dotnet.framework.performance)
  • Re: Fast linked list
    ... > amounts of memory rather than huge chunks of it. ... random insertions into a vector/dynamic array are not as slow ... to cause a cache miss. ... some hard numbers on speed differences between lists and arrays. ...
    (microsoft.public.vc.mfc)
  • Re: Fast linked list
    ... > amounts of memory rather than huge chunks of it. ... random insertions into a vector/dynamic array are not as slow ... to cause a cache miss. ... some hard numbers on speed differences between lists and arrays. ...
    (microsoft.public.vc.language)
  • Re: not enough storage... error using GetRows
    ... > array only contained ~150,000 rows. ... It took 19 minutes for GetRows to return (db ... and the prog had consumed 200MB of memory. ... The first one allocates some 180MB, the next two only allocate about 47MB ...
    (microsoft.public.vb.database.ado)