🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms
Article #1917

Memory, more memory!

#1917
From: mms00786
Date: Mon, 23 Oct 1989 00:24
27 lines
1450 bytes
Hello. I just ran into a memory roadblock (Sorry if thirty three solutions have
been discussed in the past, I missed them!)

I am writing a dedicated MS Windows application, to be run on one machine in
our lab. It has gobs of memory, about 4Meg I think, most of it EMS. The 
problem is that if I try to GlobalAlloc 384K of memory, I get a out of
memory error!

I therefore conclude only one thing - that GlobalAlloc does not know about
EMS memory. Is that true? Do I have to resort to assembly calls to EMS
functions? (BTW, I need to allocate 384K in 16K chunks at most, so I know
its not running into problems trying to allocate across segment boundaries).

So is this EMS memory accessible to my program without resorting to assembly?
I also tried using the function LimitEMSPages (wKbytes) as described in the
readme file provided with the SDK - this however gave me a unresolved external
error!!

Any information on how to allocate the requisite memory will be very much 
appreciated.

Thanks in advance,

Milan
mms00786@uxa.cso.uiuc.edu
.
Technical Details
Message-ID: <246400030@uxa.cso.uiuc.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!iuvax!ux1.cso.uiuc.edu!ux1.cso.uiuc.edu!uxa.cso.uiuc.edu!mms00786

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!iuvax!ux1.cso.uiuc.edu!ux1.cso.uiuc.edu!uxa.cso.uiuc.edu!mms00786
From: mms00786@uxa.cso.uiuc.edu
Newsgroups: comp.windows.ms
Subject: Memory, more memory!
Message-ID: <246400030@uxa.cso.uiuc.edu>
Date: 23 Oct 89 00:24:00 GMT
Lines: 27
Nf-ID: #N:uxa.cso.uiuc.edu:246400030:000:1045
Nf-From: uxa.cso.uiuc.edu!mms00786    Oct 22 19:24:00 1989