Page 1 of 1

Textpad does not release file lock after closing?

Posted: Sat May 11, 2002 4:25 pm
by Don Wilkinson
I've had this problem since v3.x as I recall.

Basically, if I open, modify, save and close a file and then try to do anything like delete that file, I can't unless I close the Textpad application. I get error messages related to the file still being in use.

It would seem to me Textpad is failing to release something that affords it exclusive access. Or something like that. :)

Thanks in advance
Don

Re: Textpad does not release file lock after closing?

Posted: Mon May 13, 2002 11:21 am
by Berend Hasselman
Try the following.

Choose from the main menu: Customize, Preferences

Select the node File in the treeview in the left of the panel.


Look for the checkbox with the text

Keep files locked while editing them

Make sure the checkbox is unchecked. This may/should solve your problem.

Berend Hasselman

Re: Textpad does not release file lock after closing?

Posted: Mon May 27, 2002 8:44 pm
by Craig Demyanovich
I've just been encountering this behavior myself. I use TextPad 4.5. My scenario is this: I'm writing a program in Java using an IDE. After saving changes in the IDE, I switch to a command prompt to invoke my Ant build script. A JUnit test fails. I open the JUnit log file via TextPad and inspect it. I close the file, but I leave TextPad running. I invoke the clean task of my Ant build script, which attempts to delete the log file in question. The clean task fails. The only way to make the clean task succeed is to close TextPad. I tried your suggestion about the property, "Keep files locked while editing the text," but I've always had that unchecked. Any more suggestions?

Thanks,
Craig

Re: Textpad does not release file lock after closing?

Posted: Tue May 28, 2002 5:22 pm
by Don Wilkinson
Thank you to Craig for posting. His description of the conditions of this undesirable behavior is much more useful than mine.

And, on a personal note, I now feel a little validated - I'm not the only one! I'm not crazy! :)

Re: Textpad does not release file lock after closing?

Posted: Thu Jun 13, 2002 4:31 pm
by Craig Demyanovich
While working in the same rhythm as I noted above, I've noticed that the locking problem does not occur if I have other files open in TextPad. With the problem more isolated and repeatable, maybe the developer(s) will have something more to say about it.

Keep up the great work!

Craig

Re: Textpad does not release file lock after closing?

Posted: Thu Jun 13, 2002 8:04 pm
by Roy Beatty
Craig,

You may indeed have useful information on this ancient bug. Please let TextPad know by posting it as a bug using the following form:

http://www.textpad.com/support/index.html

Thanks!

Roy