Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!iroquois.cis.ohio-state.edu!topping From: topping@iroquois.cis.ohio-state.edu (brian e topping) Newsgroups: comp.sys.mac.programmer Subject: Re: FSRead() limit on number of bytes Message-ID: <82929@tut.cis.ohio-state.edu> Date: 12 Aug 90 20:50:23 GMT References: <1335@anaxagoras.ils.nwu.edu> Sender: news@tut.cis.ohio-state.edu Reply-To: brian e topping Organization: Ohio State University Computer and Information Science Lines: 14 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 >.... deleted.... >byteCount = 1000L; >FSRead(fRefNum, &byteCount, (char *)data); You might check with MacsBug what is _actually_ being passed in the data parameter. If data is a struct, it is going to copy the thing onto the stack and the toolbox is going to use the first long in the struct as a pointer to the data. If this is true you want to change the last param to (char *)&data instead of just (char *)data. Brian Topping