Insufficient memory for this operation
'Insufficient memory for this operation' errorQuestion:
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.
修改BDE配置增加中間層程序響應客戶端程序個數的方法
用友安易R9網絡版軟件在使用中,若發現某些工作站不能進入系統,提示‘無法連接中間層...’,則有可能是因為服務器因中間層連接數多造成系統資源不足導致的。 判斷方法:工作站調用服務器中間層情況下,某些工作站發生連接不上中間層,且不固定,有時是這台,有時是那一台。 解決方法: 在服務器上,打開windows【控制面板】-【BDE Administrator】-【Configuration】-【System】-【INIT】,修改倒數第4項【SHAREDMEMSIZE】為默認值2048的整倍數,如4096、8192,但不能過大。最后點擊‘Object’菜單下的‘Apply’保存設置。 若數據庫為MS SQL Server,則還可以調節BDE設置中【TDS PACKET SIZE】來解決。在服務器上,打開windows【控制面板】-【BDE Administrator】-【Configuration】-【Drivers】-【Native】-【MSSQL】,修改倒數第2項【TDS PACKET SIZE】為默認值4096的整倍數,如8192、12288,但不能過大。最后點擊‘Object’菜單下的‘Apply’保存設置 |