Path: 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 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