Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!husc6!mit-eddie!ll-xn!ames!amdcad!sun!pepper!cmcmanis From: cmcmanis%pepper@Sun.COM (Chuck McManis) Newsgroups: comp.sys.amiga Subject: Re: DeleteFile() problem Message-ID: <24471@sun.uucp> Date: Wed, 29-Jul-87 20:56:30 EDT Article-I.D.: sun.24471 Posted: Wed Jul 29 20:56:30 1987 Date-Received: Sat, 1-Aug-87 02:13:45 EDT References: <02JRH437@TAMVENUS> Sender: news@sun.uucp Reply-To: cmcmanis@sun.UUCP (Chuck McManis) Organization: Sun Microsystems, Mountain View Lines: 19 In article <02JRH437@TAMVENUS> JRH4373@TAMVENUS.BITNET writes: ^-How do you remember a user-id like this? > ... I am experiencing a bit of difficulty with the >AmigaD*S function DeleteFile()... > ... I am getting an object in use error when trying to delete any >directory after having deleted all files in that directory... > ...the del command will not delete it either although I can cd to it. I suspect you have a LOCK associated with this directory lying around somewhere. Make sure you UnLock() any directory (or Close()) before trying to delete it, since AmigaDOS checks the list of Locks off a file to determine if it is in use. If you have freed all you locks then check to see if some other process has it locked. For instance when you CD to a directory, the CLI gets a Lock on it, thus it is undeletable until you CD out of it. --Chuck McManis uucp: {anywhere}!sun!cmcmanis BIX: cmcmanis ARPAnet: cmcmanis@sun.com These opinions are my own and no one elses, but you knew that didn't you.