?
Solved

Error "Directory is busy"

Posted on 2002-07-12
6
Medium Priority
?
2,891 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
  • 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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses
Course of the Month15 days, 12 hours left to enroll

850 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