DelphiFAQ Home Search:

More than one 'NETDIR' for the BDE on one computer


commentsThis article has not been rated yet. After reading, feel free to leave comments and rate it.

I want wy app to have its own 'NETDIR' setting so it won't conflict with other
apps installed on the same computer.
Is it possible to use several settings for 'NETDIR' for BDE on the same computer?

(by Chris Roberts)
Yes. Every BDE session can have a different network control file location. The default 'NETDIR' setting in the BDE Admin should always point to the same physical location, but an application can change the location in it's BDE session by setting Session.NetFileDir before a BDE session is opened.

Note that you may have some difficulties while debugging if you don't also set the default 'NETDIR' on your development machine to the same as your program's.

Note: BDE sessions with different Session.NetFileDir cannot access the same tables concurrently.

Setting the Session.NetFileDir in your application, (or suite of applications) can isolate it from an incorrectly set default 'NETDIR'. I usually set NetFileDir to a location relative to the shared application .EXE file.


2015-02-01, 05:59:35
anonymous from Venezuela  
I read your potsing and was jealous



NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: