Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!uwvax!oddjob!hao!noao!mcdsun!rover!mph From: mph@rover.UUCP (Mark Huth) Newsgroups: comp.sys.amiga Subject: Re: DeleteFile() problem Message-ID: <437@rover.UUCP> Date: Tue, 28-Jul-87 20:00:10 EDT Article-I.D.: rover.437 Posted: Tue Jul 28 20:00:10 1987 Date-Received: Fri, 31-Jul-87 03:46:41 EDT References: <02JRH437@TAMVENUS> Reply-To: mph@rover.UUCP (Mark Huth) Organization: Motorola Microcomputer Division, Tempe, Az. Lines: 21 In article <02JRH437@TAMVENUS> JRH4373@TAMVENUS.BITNET writes: >Time for another question. I am experiencing a bit of difficulty with the >AmigaD*S function DeleteFile(). The documentation I have states that this >function will delete a file or directory. The problem is, in an application >I am writing, I am getting an object in use error when trying to delete any >directory after having deleted all files in that directory. The files all >Joel << Hatchet >> Hall >jrh4373@tamvenus There are three reasons that I know of that produuce this result. 1) The object is in use because your current directory is that directory. 2) The object is in use because an ASSIGN uses that directory 3) There is an outstanding lock on the directory. Any other information would be useful. Mark Huth - I speak for myself seismo!noao!mcdsun!nud!rover!mph Actually, they would all seem to be cases of #3.