Mega Code Archive

 
Categories / Delphi / ADO Database
 

insufficient memory for this operation error

Question: Whenever I attempt to open many query or table cursors, I finally reach a point when I get an error, "Insufficient memory for this operation". What do I do? Answer: First, you should read the technical document at www.borland.com/devsupport/bde/ti_list/TI2751.html Some current internal limits of BDE. This document will tell you what most of absolute BDE limits are. IMPORTANT: If your application is not reaching one of the limits covered there and you are also getting the above error message, most likely the SHAREDMEMSIZE setting in the BDE will solve your problem. This setting will allow you to increase the BDE's internal object memory pool. A setting between 4096 and 8192 should be more than plenty.