Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

BDE initialization failure (error $2501) on Vista

I have a small datasnap server written in Delphi 2007 that accesses the BDE. It works fine on Windows 2000 and XP but from time to time (actually quite regularly) on Vista I get the error message:

An error occurred while attempting to initialize the Borland Database Engine (error $2501)

Closing everything down that uses the BDE fixes the error (although you sometimes need to "End Process" the datasnap server to close it).

This is becoming rather annoying as more and more of our clients are running Vista for their "server". Does anyone have any suggestions?

like image 265
Alister Avatar asked May 15 '09 00:05

Alister


3 Answers

You haven't mentioned if you've tried adjusting the virtual memory settings. BDE error 2501 is an "insufficient virtual memory" error. Some articles that may help:

  • BDE Sharedmem fix (older)
  • Specific memory walk through of things to check/fix
like image 185
Marshall Fryman Avatar answered Sep 23 '22 00:09

Marshall Fryman


Andy's answer link to www.torry.net is for some $30 software package that "claims" to fix BDE errors. I'd comment on it, but I don't have the reputation points. (...but someone else could...) The link doesn't work, but if you search for "BDE Setting" you'll probably find it. I can find no evidence or reviews that it works. Download unsigned exe's at your own risk... (I'll pass)

like image 31
FreeText Avatar answered Sep 23 '22 00:09

FreeText


the resolution for the error is by increasing the shared memory available for the BDE.

enter image description here

like image 27
Asad Alamdar Avatar answered Sep 24 '22 00:09

Asad Alamdar