Solved

Paradox / index / Network

Posted on 1997-03-19
2
323 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
tidtcpserver connection lost handle 2 120
Find and Replace Stream with 0s 8 85
When i run adoquery my application freezes 26 206
Installshield for Embarcadero EX 10.1 Berlin 4 89
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

739 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