Link to home
Start Free TrialLog in
Avatar of Eric Kay
Eric Kay

asked on

Borland BDE & NetDir

I have 2 computers on a Windows '95 (peer to peer) network.

The paradox tables are stored on computer 1 and computer 2 accesses the data from this computer.
The NetDir on computer 1 points to 'C:\' and the NetDir on computer 2 points to 'T:\' which is a mapping of computer 1 'C:\'.

I have created an alias 'ARROW' pointing to this directory on both computers.

The problem is when I update a record on one computer I can't see the change until I exit out completely from the application I have written in Delphi and then come back in.
Also there is no record locking etc.

Regards
Eric Kay
Avatar of sperling
sperling

You should always make sure that the mappings are equal seen from all machines.

Use
  Subst T: C:\
in autoexec.bat on one, map T: to C:\ on the other.

This is, in my opinion, a flaw in the design of Paradox, but I guess we'll have to live with it...


Regards,

Erik.
Avatar of Eric Kay

ASKER

Still doesn't work. I found that you need to set LOCAL SHARE to true on each computer on the Peer to Peer network.  The reason is that dedicated servers notify clients of record/file locking wheras on a Peer to Peer network this functionality is not present.
ASKER CERTIFIED SOLUTION
Avatar of gdj
gdj

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I ran into similar problems: Make sure that the path for both NetDir's is identical (incl. drive letter).
These paths are stored in de *.net and/or *.lck files created by the BDE. If the paths are not identical, record locking will not work as it should.