Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!mips!wrdis01!nstn.ns.ca!uupsi!sunic!news.funet.fi!ousrvr.oulu.fi!ousrvr!so-ecs From: so-ecs@stekt1.oulu.fi (Juha Ruotsalainen ti) Newsgroups: comp.os.os2.programmer Subject: Reading more than 64K Message-ID: Date: 23 Apr 91 09:51:17 GMT Sender: news@ousrvr.oulu.fi Distribution: comp.os.os2.programmer Organization: University of Oulu, Dept. of EE, Finland Lines: 9 How can my program read a file bigger than 64k into memory. At the moment I try to read 64k`s at a time and the rest of it (less than 64k) afterwards. But after I`ve read 0xffff bytes, the next DosRead reads only 1 byte. Is there a problem with DosAllocHuge, I mean, shouldn`t it allocate a memory block larger than 64k. I have traced the DosRead call with CodeView, and was surprised to see that when the program tried to point past 64k area (jimi[0x10000]) there was an I/O error. I hope you understand my I`m trying to say here. Please help... -ECS