Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!ucdavis!iris!rogers From: rogers@iris.ucdavis.edu (Brewski Rogers) Newsgroups: comp.sys.amiga.tech Subject: Re: Is there a routine to generate full-path names? Message-ID: <6534@ucdavis.ucdavis.edu> Date: 22 Jan 90 21:33:32 GMT References: <1271.AA1271@noel> <6522@ucdavis.ucdavis.edu> <130545@sun.Eng.Sun.COM> Sender: uucp@ucdavis.ucdavis.edu Reply-To: rogers@iris.ucdavis.edu (Brewski Rogers) Organization: U.C. Davis - Department of Electrical Engineering and Computer Science Lines: 33 In article <130545@sun.Eng.Sun.COM> cmcmanis@sun.UUCP (Chuck McManis) writes: ]Bruce, you should get a copy of the program ShowLocks, you would notice ]that after running your code that there were a bunch of filelocks ]hanging around. The reason is that you don't ever "UnLock" anything ]that you "Lock". So in your code ... ] ]> lock=ParentDir(lock); ]> if (lock!=NULL) SeekRoot(lock); ] ]This has to be changed to something like : ] newlock = ParentDir(oldlock); ] UnLock(oldlock); ] oldlock = newlock; ] if (newlock != NULL) ... ]And somewhere near the end of this routine you should have a statement : ]> lock=Lock(dirName,ACCESS_READ); ] ... ] UnLock(lock); oops! you're right! OKAY, fixing the original source I posted will be left as an exercise for the reader... ]--Chuck McManis ]"If it didn't have bones in it, it wouldn't be crunchy now would it?!" ^^^ time for a new one. ------------------------------------------------------ Quantum _\/_ 2727 Eel Bruce (6502 RULES!) Rogers |\ Duck ( 0 0) Davis, Ca 95616 Quantum Duck Software, |\ \______/ / \\\ 916-756-2684 rogers@iris.ucdavis.edu |\ < < | \/ "My brain is on fire!" \________/ Quark!