Solved

Paradox / index / Network

Posted on 1997-03-19
2
320 Views
Last Modified: 2010-04-04
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?
0
Comment
Question by:dos-sa_j
2 Comments
 
LVL 3

Expert Comment

by:sperling
ID: 1334810
Tried upgrading the BDE? Quite a few versions of the BDE is rather buggy.
0
 

Accepted Solution

by:
mbatchel earned 100 total points
ID: 1334811
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
begin
  if tmpStr = '' then      {* Use ConfigDB Path *}
  begin
    tmpList := TStringList.Create;
    try
      try
        Session.GetAliasParams( 'SysDatabase', tmpList );
      except
        { this message gets shown twice }
          MessageDlg(      FmtLoadStr(ADMALIASERROR,
                      ['SystmDatabase']),
                        mtWarning, [mbOk], 0);
      end;
      tmpStr := tmpList.Values['PATH'];
     finally
       tmpList.Free;
     end;
   end
   else
     tmpStr := ExpandFileName(tmpStr);
   if tmpStr <> '' then      
   {* In case we didn't find one, don't change *}                            Session.NetFileDir := tmpStr;
end;

0

Featured Post

Independent Software Vendors: 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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…

680 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