Path: utzoo!attcan!uunet!decwrl!apple!stevec From: stevec@Apple.COM (Steve Christensen) Newsgroups: comp.sys.mac.programmer Subject: Re: FSRead() limit on number of bytes Message-ID: <9719@goofy.Apple.COM> Date: 13 Aug 90 16:36:51 GMT References: <1335@anaxagoras.ils.nwu.edu> Organization: Apple Computer Inc., Cupertino, CA Lines: 28 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 have been known to read a meg or more out of a file in one shot. Have you checked to make sure your buffer can hold that many bytes? Just a guess... steve -- ____________________________________________________________________ Steve Christensen Internet: stevec@goofy.apple.com Apple Computer, Inc. AppleLink: STEVEC 20525 Mariani Ave, MS 81-CS CompuServe: 76174,1712 Cupertino, CA 95014 "You just contradicted me." "No I didn't." ____________________________________________________________________