DelphiFAQ Home Search:

How to fix BDE Error '2B04 Too many open files'

 

comments3 comments. Current rating: 3 stars (1 votes). Leave comments and/ or rate it.

Question:

What should I do with error 11012 ("2B04 Too many open files"). You may need to increase MAXFILEHANDLE limit in IDAPI configuration.

Answer:

Open the tool 'BDE Administrator' and choose the right tab 'Configuration'.
Thre open the node 'System' and click on subnode 'INIT'.

Then update 'MaxFileHandles' on the right side (it is 48 by default).
Content-type: text/html

Comments:

2006-10-09, 13:12:07
michel.guedes.vieira@gmail.com from Brazil  
rating
Works, but this option will be available when I make the installation files of my application in the clients, or i'll need to set this config manually in all of them? Thanks, and I apologize for my bad english! :)
2007-02-19, 23:37:15
anonymous from Iran  
function filehnd
var
Reg : TRegistry;
const
BDE_LOCAL_SHARE_KEY = '\Software\Borland\Database Engine\Settings\SYSTEM\INIT';

begin
Result:=false;
Reg := TRegistry.Create;
With Reg Do
begin
Access := KEY_READ or KEY_WRITE;
RootKey := HKEY_LOCAL_MACHINE;
{ Write the BDE keys }

// added new.
OpenKey(BDE_LOCAL_SHARE_KEY, true);
if lowercase(ReadString('MAXFILEHANDLES'))<>'96' then
begin
WriteString('MAXFILEHANDLES', '96');
Result:=true;
end;
end;

end;
2009-12-11, 05:25:12
anonymous from Spain  
thanks, for the answer. I have been very helpful

 

 

NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.
 

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: