Solved

Paradox / index / Network

Posted on 1997-03-19
2
289 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
Comment Utility
Tried upgrading the BDE? Quite a few versions of the BDE is rather buggy.
0
 

Accepted Solution

by:
mbatchel earned 100 total points
Comment Utility
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

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

9 Experts available now in Live!

Get 1:1 Help Now