why do i get bde error $210D if my routine in COM DLL but it works fine as standalone app

Posted on 2004-11-02
Last Modified: 2012-08-14
i'm trying to do some dBase restructuring with the BDE.  can't put it in my main app because we are using a special bde replacement.  when i compile this restructuring code into a standalone app, it works great.  when i compile the same code into a COM automation DLL, i get bde error $210D (not enough memory).  i know for sure that the bde is in use in this project (not the bde replacement)...something strange seems to be happening...  it's almost like the memory allocation conflicts with the application's memory space but i don't know enough about the memory management of COM to make a good guess how to fix this.

in a way, it's not too terrible because the standalone app works fine...but i wanted a nicer solution!

Question by:mikepj
    LVL 22

    Accepted Solution

    from BDE support page

    Shared memory conflict ($210D)
    Problem: The BDE is trying to use a location in memory that is already in use by the operating system or another application.
    1) Close all BDE applications.
    2) Find the program BDEADMIN.EXE. This is usually in a directory somewhere under "\Program Files\Borland...".
    3) Run BDEADMIN.EXE and click on the Configuration tab.
    4) There should be an item in the treeview on the left side called "Configuration". If it's not expanded, expand it.
    5) Next, expand the System entry below it. Under System, select INIT.
    6) In the right-side window, find the entry called "SHAREDMEMLOCATION". Change this value to 5BDE.
    7) Next, click on the word "Object" in the main window's menu bar, and select Apply.
    8) Answer "OK" to the confirmation to "Save all edits...".

    Other values that may also help solve this issue on NT or Windows 2000 are: 1000, 7000, and 7F00. If none of these values resolve the issue, you may try 2000, 3000, 4000, etc. or any values in between the specified ranges below for each operating system:
        Windows 95/98: SHAREDMEMLOCATION = 9000 to FFFF
        Windows NT/2000: SHAREDMEMLOCATION = 1000 to 7F00
    It has also been reported by some users that removing or disabling the driver for a sound card on Windows NT can resolve the issue as well, but normally just "relocating" the BDE's memory pool using the SHAREDMEMLOCATION setting will suffice.
    LVL 2

    Author Comment

    thank you for your response.  sorry for my late response; i had been hoping to try some of that stuff but i haven't had time.  didn't want to fool with customer's bde config since that horror show would be something i'd like to attend.  tried some memory location stuff before posting this question but it didn't work.  this one looks a bit different from the one i had.  i've decided to accept your answer to close the question.  the bde setup sure is a frustrating and hopeless mess...i can't possibly modify customer bde config without taking the chance of breaking something of theirs!

    thanks for trying to help,

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    Suggested Solutions

    Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
    Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now