🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms
Article #215

EMS

#215
From: Michael Bakkemo
Date: Thu, 15 Jun 1989 05:02
21 lines
1230 bytes
 Michael Roper: How do I make sure the alloc grabs memory above the
	        640k line?

 Let me apologize for sounding more esoteric than I meant to
when all I meant to do was make sure nobody did anything stupid,
even though they probably wouldn't have anyway.

 The answer is you deliberatly have to NOT allocate above the line
by using the GMEM_NOT_BANKED or the GMEM_DDESHARE flags. Anything
else automatically allocates above the line (assuming you have it of course).

 If you bitmaps in memory, the redraw is fast, but thats memory that
another program can't allocate. If you don't mind a slower redraw
speed, have a discardable bitmap. If it hangs around, great. If it
gets chucked, band it in from disk.


Michael Bakkemo.
Microsoft has no idea I can think up crazy stuff like this all on
my own, and wouldn't approve of it even if they did.
Technical Details
Message-ID: <6036@microsoft.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!microsoft!c-mikema

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!microsoft!c-mikema
From: c-mikema@microsoft.UUCP (Michael Bakkemo)
Newsgroups: comp.windows.ms
Subject: EMS
Message-ID: <6036@microsoft.UUCP>
Date: 15 Jun 89 05:02:05 GMT
Reply-To: c-mikema@microsoft.UUCP (Michael Bakkemo)
Organization: Microsoft Corp., Redmond WA
Lines: 21