Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!decwrl!shelby!neon!pescadero.Stanford.EDU!philip From: philip@pescadero.Stanford.EDU (Philip Machanick) Newsgroups: comp.sys.mac.programmer Subject: Re: FSRead() limit on number of bytes Message-ID: <1990Aug11.224722.25119@Neon.Stanford.EDU> Date: 11 Aug 90 22:47:22 GMT References: <1335@anaxagoras.ils.nwu.edu> Sender: news@Neon.Stanford.EDU (USENET News System) Reply-To: philip@pescadero.stanford.edu Organization: Computer Science Department, Stanford University Lines: 19 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); > > Has anybody run into this problem? Has it been documented? > There is no mention of the limit in Mac Revealed or Inside Mac. I've used FSREAD for much larger data. How much space did you allocate for "data"? Philip Machanick philip@pescadero.stanford.edu