RE: "not enough storage ...." error using GetRows

From: danreber (danreber_at_discussions.microsoft.com)
Date: 01/28/05


Date: Fri, 28 Jan 2005 11:31:04 -0800

More info:

I tested the app in the VB IDE. I placed a breakpoint at

DataArray = rsData.GetRows(adGetRowsRest)

At that point I had 1.55 GB of RAM (out of 2GB) available. When GetRows was
called the amount of RAM spiked to 550 MB RAM used, the error was raised and
the RAM went back down to 450 MB used. I copied the line of code to the
immediate window. After executing the line and getting the error three
times, on the fourth time the line ran fine and the rest of the code worked
without any issues.

So I don't think that it is a system resources issue.

"danreber" wrote:

> I have a client that is returning >600K rows from a sql server using a VB
> application. I am referencing ado 2.6 in the app but he has windows xp sp2
> (I think that has ado 2.8???). When the data is fetched I use GetRows to
> poplulate an array. As soon as GetRows is called I get an error "not enough
> storage is available to complete this operation".
>
> I have searched the internet and I can't find much about it. I did find a
> refernce to AppenChunck but I am not using that.
>
> I tested the app on my PC
>
> 2 GB RAM
> 3.6 GHtz
> Windows XP SP 2
> MDAC 2.8 SP1
>
> and I get the same error. Does anybody have any ideas?
>
> Thanks
>
> danreber



Relevant Pages

  • Re: An idle rant
    ... computers sittin' around). ... running the production release app. ... > kindly ask you to think of your customers when you test your applications. ... 128Mb RAM and Win2K ...
    (borland.public.delphi.non-technical)
  • Memory Usage
    ... I'm trying to get an idea of the amount of memory is being used by my ... Is it safe to conclude that my ASP.NET app requires about 26MB of RAM ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Need test for program loader accuracy; IPSM
    ... IPSM to main storage, and then launches the copy in RAM. ... have a tiny debugger process that launches your app directly from IPSM. ... > executables are being correctly loaded into RAM at runtime? ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Need test for program loader accuracy; IPSM
    ... IPSM to main storage, and then launches the copy in RAM. ... have a tiny debugger process that launches your app directly from IPSM. ... > executables are being correctly loaded into RAM at runtime? ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Need test for program loader accuracy; IPSM
    ... IPSM to main storage, and then launches the copy in RAM. ... have a tiny debugger process that launches your app directly from IPSM. ... > executables are being correctly loaded into RAM at runtime? ...
    (microsoft.public.windowsce.embedded)