Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site ut-dillo.UUCP Path: utzoo!watmath!clyde!bonnie!akgua!gatech!ut-sally!ut-ngp!ut-dillo!darin From: darin@ut-dillo.UUCP (Darin Adler) Newsgroups: net.micro.mac Subject: Re: Delphi Digest Volume 1 Issue 11 (VOLUME INDEXING) Message-ID: <240@ut-dillo.UUCP> Date: Mon, 9-Dec-85 14:27:20 EST Article-I.D.: ut-dillo.240 Posted: Mon Dec 9 14:27:20 1985 Date-Received: Wed, 11-Dec-85 03:41:30 EST References: <4262@topaz.RUTGERS.EDU> Organization: UTexas Computation Center, Austin, Texas Lines: 18 > After trying several methods of trying to find my bug (of using > _GetVolInfo with indexes) i found somthing VERY strange... If you do > not clear the Volume name field of the volume paramter block, the > system will successfully hunt for volume reference numbers by using > indexes, but will cause random bomb's when the first non disk trap is > executed. This is really strange since in the Tech notes #24 I do not > remember them clearing the volume name... As soon as the volume name > is cleared it works fine. No problems at all... Strange isn't it ? > Scott This behavior is not strange at all, considering what _GetVolInfo does with the name field. If this field is NIL, it does nothing at all, however, if it is non-NIL, it returns the volume name in the provided storage (regardless of the method used to look up the volume). Thus, leaving this undefined guarantees that you will trash some random memory. -- Darin Adler {gatech,harvard,ihnp4,seismo}!ut-sally!ut-dillo!darin