🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms
Article #219

Re: EMS (and GDI!)

#219
From: Michael Roper
Date: Fri, 16 Jun 1989 19:46
23 lines
1291 bytes
Michael Bakkemo writes:

>  Michael Roper: How do I make sure the alloc grabs memory above the
> 	        640k line?

The question I asked was:  

	"How can one dictate to GDI where it allocates its 
	objects with respect to the bank line?"

They aren't the same thing.  We have labored over this problem
for some time and found that in small-frame EMS, GDI allocations
are unpredictable with respect to the bank line (the same is 
true for GlobalAlloc's unless the GMEM_NOT_BANKED or GMEM_DDESHARE
flags are used to force the allocation below the bank line -- as
you pointed out).  In large-frame EMS however, it appears that
GDI -always- allocates above the line.  This was (and possibly
still is) a problem for us in certain cases that involve sharing
bitmaps that are created by a library.  The question remains:
how can one control GDI allocations?

Michael Roper
hDC Computer Corporation
Technical Details
Message-ID: <8548@june.cs.washington.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!mit-eddie!uw-beaver!uw-june!roper
References: <6036@microsoft.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!mit-eddie!uw-beaver!uw-june!roper
From: roper@june.cs.washington.edu (Michael Roper)
Newsgroups: comp.windows.ms
Subject: Re: EMS (and GDI!)
Message-ID: <8548@june.cs.washington.edu>
Date: 16 Jun 89 19:46:32 GMT
References: <6036@microsoft.UUCP>
Organization: U of Washington, Computer Science, Seattle
Lines: 23