Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 432
  • Last Modified:

Out Of Memory Error

Hello fellow Database guru's,
I'm using the VB DataControl to handle a large Access 7 database.

The code works fine on smaller databases, but when I attempt to use it on my large database, setting the recordsource to a SQL statement the system generates:
system error &H800040005 (-2147467259).

The error handling routine in the code shows:
Data error event hit err:Out of memory.

Does anyone know what causes this, and how I can get round it?

Thank you!
0
databaseguru
Asked:
databaseguru
1 Solution
 
MirkwoodCommented:
Which error do you mean
&h80040005  or &h80004005
Most likely the second on E_FAIL.
The system just fails with an unspecified error.

0
 
VerolandCommented:
how big is the database ? and when it chrases how big then. I've had a problem where my DB grew up tot 1 gig while busy doing a query and then crashes. Access can only handle DB's up to a gig
0
 
AnswerTheManCommented:
u wrote u tried on a smaller database. have u used the same
setting for the recordsource to a SQL statement ?
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
TheAnswerManCommented:
Is there a Grid Bound to the Datacontrol?
0
 
kswinneyCommented:
Can you post the SQL for your recordsource?  Also, have you tried executing the exact same SQL inside Access 7?

Are you returning a huge number of rows from your query?  If so, try binding your control as a virtual control.  Grids especially consume large amounts of resources trying to fill themselves with entire recordsets.  Virtual binding can avoid this problem.

One more thing:  Consider re-coding your query to return less data based on user input.  

The narrower you make your select statement, the faster your app will run.  When you're binding large recordsets it's especially important.  You probably already know this stuff... but it's usually the cause of the problem you're experiencing.

0
 
SPECIALISTCommented:
download the new MS JET from www.microsoft.com.  It addresses many problems and fixes them.

Good luck

Specialist
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now