?
Solved

Paradox / index / Network

Posted on 1997-03-19
2
Medium Priority
?
333 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 200 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

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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 this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses
Course of the Month7 days, 19 hours left to enroll

765 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