[Last Call] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 340
  • Last Modified:

Paradox / index / Network

I've devlopped an application using Paradox 7 on Delphi 2.0 and working with 3 users. But, index are out of date once or twice a day. I use DbiSaveChanges after each post and delete, i've disables vcache.386. Can I have a real solution?
1 Solution
Tried upgrading the BDE? Quite a few versions of the BDE is rather buggy.
Please be sure that all users are pointing to the same PDOXUSRS.NET file. This is normally set in the BDE configuration for each user.

In our application, we provide the option of setting the path for the file in the BDE Configuration, specifying in the applications' INI file, or, by default, we set the path to the same directory as the location of the Paradox tables. Just for background, the application ini file has a section called SystemDatabase with a NetFileDir setting. If the setting is set to *BDE* than we skip the whole routine (and use the setting in the BDE). If the setting is non-blank, than we use the specified path as the Sessions' netfiledir. Otherwise, we query the alias parameters for the path, and use that for the netfiledir.

We have seen a dramatic drop in support problems after writing and putting the following code along our startup path that sets the NetFileDir property of the session variable:

{*** Set the NetFileDir to point to the ConfigDB directory ***}
{*** unless overridden in INI File                         ***}
tmpStr := appini.ReadString( 'SystemDatabase',
                             'NetFileDir', '' );
if ANSIUpperCase(tmpStr) <> '*BDE*' then
  if tmpStr = '' then      {* Use ConfigDB Path *}
    tmpList := TStringList.Create;
        Session.GetAliasParams( 'SysDatabase', tmpList );
        { this message gets shown twice }
          MessageDlg(      FmtLoadStr(ADMALIASERROR,
                        mtWarning, [mbOk], 0);
      tmpStr := tmpList.Values['PATH'];
     tmpStr := ExpandFileName(tmpStr);
   if tmpStr <> '' then      
   {* In case we didn't find one, don't change *}                            Session.NetFileDir := tmpStr;


Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now