Textpad does not release file lock after closing?

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Don Wilkinson

Textpad does not release file lock after closing?

Post 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
Berend Hasselman

Re: Textpad does not release file lock after closing?

Post 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
Craig Demyanovich

Re: Textpad does not release file lock after closing?

Post 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
Don Wilkinson

Re: Textpad does not release file lock after closing?

Post 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! :)
Craig Demyanovich

Re: Textpad does not release file lock after closing?

Post 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
Roy Beatty

Re: Textpad does not release file lock after closing?

Post 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
Post Reply