Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with virtual memory of databases in BCB6

Status
Not open for further replies.

Papanatix

Programmer
May 20, 2005
2
ES
I'm working with BCB6 and my application acceeds to a database (dBase, of BDE of Borland) with TDataSource and TTable components. My problem is that when I run the application four or five times, the last one borland says me:

Project Application.exe raised exception class EDBEngineErro with message 'Insufficient memory for this operation. Alias: RegisterDatabase '. Process stopped. Use Step or run to continue

I don't know how I can solve this, because this components haven't a destructor for themself, they are destructed whith the destructor of the form where they are placed.

How can I solve this problem of virtual memory? Have I to delete some things?

Thanks!!
 
Depending on how you are creating objects, yes, you have to delete those objects. What objects are you creating in your code?

One other thing to look at is how you are loading your TTable. Your program may be trying to load the entire database into the dataset. If you don't clear the dataset, you could be trying to load the table with the data multiple times. This could also cause your problem.

James P. Cottingham
-----------------------------------------
I'm number 1,229!
I'm number 1,229!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top