Path: utzoo!attcan!uunet!samsung!uakari.primate.wisc.edu!ark1!nems!mimsy!mojo!russotto From: russotto@eng.umd.edu (Matthew T. Russotto) Newsgroups: comp.sys.mac.programmer Subject: Re: FSRead() limit on number of bytes Message-ID: <1990Aug13.135430.28189@eng.umd.edu> Date: 13 Aug 90 13:54:30 GMT References: <1335@anaxagoras.ils.nwu.edu> Sender: news@eng.umd.edu (The News System) Organization: College of Engineering, Maryversity of Uniland, College Park Lines: 15 In article <1335@anaxagoras.ils.nwu.edu> sandell@ils.nwu.edu (Greg Sandell) writes: >Using FSRead() I find that I can read only a limited number of >bytes at a time. In the code below byteCount can be as large >as 1500 but when I use a value of 2000 the program dies a strange >death: the disk light stays continuously lit (non-blinking) >and the disk whirs forever until I reboot. > >byteCount = 1000L; >FSRead(fRefNum, &byteCount, (char *)data); > I do disk reads of well over 1000 bytes routinely (in fact, they are often 0x1000 bytes). Are you sure the 'data' buffer is big enough? -- Matthew T. Russotto russotto@eng.umd.edu russotto@wam.umd.edu ][, ][+, ///, ///+, //e, //c, IIGS, //c+ --- Any questions?