"Cannot create file" debug error message

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
Ash
Newbie
Posts: 2
Joined: Thu Dec 04, 2003 12:08 pm

"Cannot create file" debug error message

Post by Ash » Mon Aug 16, 2004 6:59 am

After exiting part way through a script while using the single step debug tool I get the following error message whenever I try to run the script again:

"Cannot create file "......|_debug.dbg. The process cannot access the file because it is being used by another process."

How do I recover from this and stop it from happening?

Ash
Newbie
Posts: 2
Joined: Thu Dec 04, 2003 12:08 pm

Post by Ash » Mon Aug 16, 2004 12:08 pm

Found postings about this problem in Technical/Scripting, starting May 26 2004. Seems to be caused in my script by WaitWindowOpen commands. Find I have to use Task Manager to exit Macro Scheduler to allow the _debug file to be deleted.

User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Tue Aug 17, 2004 7:17 pm

Possibility is that WaitWindowOpen is still waiting. The command should drop out of the loop when debug ends, so sounds like a bug in our code. Will get it checked out for next release. Thanks for the feedback on this.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts