🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #2569

Reading more than 64K

#2569
From: Juha Ruotsalainen ti
Date: Tue, 23 Apr 1991 09:51
9 lines
1049 bytes
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
Technical Details
Message-ID: <SO-ECS.91Apr23115117@stekt1.oulu.fi>
Path: arc1-ca.pugleaf.net!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

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <SO-ECS.91Apr23115117@stekt1.oulu.fi>
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