More often than not i cannot figure out why a delete is refused with the message "object is in use" Most irritating is an empty directory. It happens with Filer as well as from shell.
What can be the causes i overlook ? (a file used in some application, an icon that is put in Amidock or left out on WB?? )
I am cleaning up a partition in which i did a backup of my "OS4.1 update 1" files. I get this problem with files that surely are not used anywhere example : an 'internet' drawer, which contains only an empty 'action logs' drawer. I can't delete it and neither the 'action logs' drawer, even with workbench. I am going to reboot and try again
Hmm, the only other thing i could think of is a corrupted drawer/file
I got that behaviour with crippled files i copied to a NAS server where it mangled some files in the process due to not supported chars in the filename and/or a missing file comment support (iirc the latest "copy" command checks for comments and deletes them automatically when copying to a foreign fs...but thats ot )
If it seems to be corrupted and you don't have a chance to delete it, there is only format (at least *i* had to use it back then)
either an assign or an app that locks the directory but doesnt free it at on exit. I have found this on many apps, specially with locked images that arent freed on exit etc. Ofcourse the apps that does this i report to the authors and they fixed it.
On reboot you can ofcourse delete if its not a directory that is assigned in user-startup ofcourse.
You can use Scout to remove locked directories/files etc or just reboot.
1. If you cd to a drawer in a Shell, then try to delete the drawer, the Shell has a lock on the drawer while you are cd'ed to it. 2. If you have a window open on WB, in Filer or DOpus, there is a lock on the drawer.
Of course, if you are cleaning out a partition, it's quicker and safer to Format Quick the partition.
You can use Scout to remove locked directories/files etc or just reboot.
You CAN, but usually I find this causes OS4 to become unstable & crash after a while. (Even though the relevant program no-longer seems to be running.)
If a directory is still locked after a reboot, there is a simple trick: rename it to "delete_me" or similar and then reboot again. After that you should be able to delete it.
Hi guys, @JosDuchIt #1 ... cannot figure out why a delete is refused with the message "object is in use" Most irritating is an empty directory. It happens with Filer as well as from shell.
That's happened so many times here... I run prgs from Ram Disk before storing them. When you delete the program, you get the error.
@Raziel #2 It means that a program has still locked a file/directoy.
Could it be just a behavior of Ram Disk? That's where it occurs; never saw the error anywhere else.
The rename into "delete_me" trick is great. You can't do that on windows with a locked file or dir But on Amiga you can always rename or move (on the same partition) any file or dir that is locked.
But "object in use" is otherwise very logical: - A program was started from a directory would lock that directory (but not the program executable). - Some program is into a directory (like Filer, or the shell or WB having a drawer open) would lock that directory. - A program that crashed would lock the executable as long as the Grim Reaper is open. - An assign to a directory would add a lock to the directory. - Any file that is being read or written to would be locked. A log file may for example always be opened and therefore locked.
Software developer for Amiga OS3 and OS4. Develops for OnyxSoft and the Amiga using E and C and occasionally C++