Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!rutgers!ames!ucbcad!ucbvax!COGSCI.BERKELEY.EDU!bryce From: bryce@COGSCI.BERKELEY.EDU (Bryce Nesbitt) Newsgroups: comp.sys.amiga Subject: Re: DeleteFile() problem Message-ID: <8707280639.AA23667@cogsci.berkeley.edu> Date: Tue, 28-Jul-87 02:39:18 EDT Article-I.D.: cogsci.8707280639.AA23667 Posted: Tue Jul 28 02:39:18 1987 Date-Received: Wed, 29-Jul-87 04:06:35 EDT Sender: daemon@ucbvax.BERKELEY.EDU Organization: Institute of Cognitive Studies, UC Berkeley Lines: 18 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(). >[I make a directory with mkdir(), but when I try to delete it I get an >"object in use" error.] The mkdir() function eventually calls the AmigaDOS CreateDir() function. CreateDir() returns a lock on the directory in question. It has an open lock, thus is "in use". To delete that directory you must first UnLock() it. Since you are using the direct dos DeleteFile(), you should probably also use the direct dos CreateDir() and UnLock(). |\ /| . Ack! (NAK, EOT, SOH) {o O} . ( " ) bryce@cogsci.berkeley.EDU -or- ucbvax!cogsci!bryce U "Success leads to stagnation; stagnation leads to failure."