Board index » delphi » IDE and "directory busy"

IDE and "directory busy"

Hello:

When I am running on a project through the IDE and it blows up, due to
whatever programming error I have made this time, and I:
(1) press Ctrl-F2 to Program Reset
(2) alter my code
(3) Run it again.

I get the error msg that the directory is busy.

So, I have to:
(1) save the project
(2) exit Delphi
(3) Start Windows Explorer
(4) Open the c:\Priv, where the infamous Pdox net & lck are living.
(5) Delete the two %#!*(^?~ files.
(6) Close Windows Explorer
(7) restart Delphi
(8) Re Open my project
(9) Run my program.

If the code is still not fixed, I have to go through all these steps again
and again and again until I want to throw my PC against the wall!

Do I have one of the Delphi or BDE settings configured incorrectly or is
this just the way it is?

Thanks,

Rob.
--------------------------------
A. Robert Thompson
Montreal, Quebec, Canada
-------------------------------------------
Delphi 5 & 6  Ent, IB6, BDE 5.11, dBase & Paradox tables, Win 98, Win NT
Server, ReportBuilder, InfoPower.

 

Re:IDE and "directory busy"


Unfortunately, whenever a program "blows up" on you, things like this
happen. It's not Delphi but the OS that does this. It also depends on where
your program crashes and what you are doing when it does. It's just
something we have to live with. Sorry that it doesn't help you but there is
nothing else I can offer you.

Woody

Quote
"Robert Thompson" <robert.thomps...@sympatico.ca> wrote in message

news:3b507177_2@dnews...
Quote
> Hello:

> When I am running on a project through the IDE and it blows up, due to
> whatever programming error I have made this time, and I:
> (1) press Ctrl-F2 to Program Reset
> (2) alter my code
> (3) Run it again.

> I get the error msg that the directory is busy.

Re:IDE and "directory busy"


Thanks, Woody!

Re:IDE and "directory busy"


BDE/Delphi handle crashes poorly... (including loss of data that's in the
cache still).  I've moved away from it
to a different engine (jet/access) and it works much
better.  If you're just getting started, you might consider
moving too.

Good luck.

Quote
"Robert Thompson" <robert.thomps...@sympatico.ca> wrote in message

news:3b507177_2@dnews...
Quote
> Hello:

> When I am running on a project through the IDE and it blows up, due to
> whatever programming error I have made this time, and I:
> (1) press Ctrl-F2 to Program Reset
> (2) alter my code
> (3) Run it again.

> I get the error msg that the directory is busy.

> So, I have to:
> (1) save the project
> (2) exit Delphi
> (3) Start Windows Explorer
> (4) Open the c:\Priv, where the infamous Pdox net & lck are living.
> (5) Delete the two %#!*(^?~ files.
> (6) Close Windows Explorer
> (7) restart Delphi
> (8) Re Open my project
> (9) Run my program.

> If the code is still not fixed, I have to go through all these steps again
> and again and again until I want to throw my PC against the wall!

> Do I have one of the Delphi or BDE settings configured incorrectly or is
> this just the way it is?

> Thanks,

> Rob.
> --------------------------------
> A. Robert Thompson
> Montreal, Quebec, Canada
> -------------------------------------------
> Delphi 5 & 6  Ent, IB6, BDE 5.11, dBase & Paradox tables, Win 98, Win NT
> Server, ReportBuilder, InfoPower.

Re:IDE and "directory busy"


Hi Woody:

I received the following e-mail directly and John's suggestion works really
well.

Rob.

//******************************
Robert,

Have you tried this..  when the app blows up the first time,
instead of pressing Ctrl-F2, press Run instead.  This trys
to run the program through the problem, which should throw
an error Dialog.  Then, close the app through your normal
methods.  This should free the directory.  Then you can
debug etc.

I used to break out of my apps using Ctrl-F2 and found it
to be too buggy and I simply don't do it anymore.

Hope this helps, let me know.

John

Other Threads