?
Solved

Error "Directory is busy"

Posted on 2002-07-12
6
Medium Priority
?
2,816 Views
Last Modified: 2007-12-19
Hi,
I'm currently working with Borland Delphi 5 and a standard shared database (Paradox).

That application is used by different users. When we used a build version of the program everything works fine but if I use the run command of the development tool I have a "Directory is busy" error.

I've already tried to delete the pdoxusrs.net file, I'm using a TSession with private and net directories. I'm a bit lost...

Could U help me? Thx a lot!
0
Comment
Question by:usa4manu
[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
  • 5
6 Comments
 
LVL 27

Expert Comment

by:kretzschmar
ID: 7148541
table is opened exclusive by another instance
or local share property in the bde-admin tool
did not have a proper value


if the problem is the .net file,
then a message like
directory is controlled by another .net file
coems up

but i guess you open the table exclusive in the ide,
so that the running insatnce started from within the ide
cannot open the table

meikl ;-)
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 7148545
appendix:

delete the .lck files,
if definivly nobody accesses the database-directory

meikl ;-)
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 7148550
and next point

private-dirs cannot shared by different sessions,
if local share is set to false

meikl ;-)
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 27

Accepted Solution

by:
kretzschmar earned 1500 total points
ID: 7148558
advice

keep the tables in the ide closed,
and open the tables at appstart
(in the formcreate-event of
the mainform for example)

then your problem should be gone

or
adjust the local share in
the bde-admin to the other value

hope this helps

meikl ;-)
0
 

Author Comment

by:usa4manu
ID: 7148573
In fact I've just put the TSession.active to false and add a "logging" button to put the session active once the form loaded and it's working... Very strange... Do U have an idea why?

I haven't found any lck file.

Thx for the quick answer and hit the points ;-)
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 7148579
thats sounds really a bit weird.

but i think its a problem of the private-dir,
which was just reserved by the open tsession in the ide.

thanks for the points :-)

meikl ;-)
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
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…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses
Course of the Month10 days, 18 hours left to enroll

770 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