TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Peter Fitzsimmons
from: Mario Semo
date: 1996-05-23 08:52:00
subject: Toolkit 1.3 from Devcon

Hello Peter,

On May 20 23:17 96, Peter Fitzsimmons of 1:259/414 wrote:

 MS>> (a side effect is, that each call to DosAllocMem 
 MS>> allocates 64K and NOT the designed 4K of address 
 MS>> Space).

 PF> Don't confuse address space with allocated memory.  Even 
 PF> though the addresses increase by 64k,  they still only 
 PF> allocate 4k.

 PF> Your above statement is not wrong,  but it could be taken 
 PF> to mean that the system always allocates 64k of mem.

JFYI: OS/2 Toolkit from DevCon9 (NOT in prior versions):

[DosAllocMem - Remarks]

 Note: DosAllocMem and DosAllocSharedMem both allocate a block of memory
 of the size requested rounded to the nearest page. On OS/2 Warp, the
 system allocates a 64K object without attributes on every allocation.

 For example, for a DosAllocMem call with a size of 1, the following
occurs:

      On OS/2 Warp Connect, the system allocates a 4096-byte block of
       committed memory.
      On OS/2 Warp, the system allocates a 4096-byte block of committed
       memory plus 61440 bytes without attributes.

 WARPED!, Mario

--- Msgedsq/2 2.2e
* Origin: LC/32 Development Team-Vienna-Austria (2:310/14.11)
SEEN-BY: 50/99 270/101 620/243 711/401 409 410 413 430 808 809 934 955
SEEN-BY: 712/407 515 517 628 713/888 800/1
@PATH: 310/14 1 24/999 888 396/1 270/101 712/515 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.