delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1997/10/01/09:35:26

Sender: ml AT delorie DOT com
Message-ID: <34324FEF.B08D00C@cdata.tvnet.hu>
Date: Wed, 01 Oct 1997 15:28:15 +0200
From: Molnar Laszlo <molnarl AT cdata DOT tvnet DOT hu>
MIME-Version: 1.0
To: Charles Sandmann <sandmann AT clio DOT rice DOT edu>
CC: DJGPP workers <djgpp-workers AT delorie DOT com>
Subject: Re: cwsdpmi and upper memory
References: <9709302018 DOT AA11954 AT clio DOT rice DOT edu>

> > switch DOS's memory allocation strategy, and successfully loads cwsdpmi
> > high. But it seems that at that point the UMB is full, and when cwsdpmi
> > tries to alloc some more memory  that fails, because it only tries the
> > high memory. Am I right?
> No.  CWSDPMI requests memory from DOS via a call which should return
> high memory if available, low memory if not.  It seems your DOS is broken.

OK, it's not a cwsdpmi bug, it's DOS bug. I use ms-dos 6.22. Below is
the output of "mem/c".
When I try "lh cwsdpmi" I got an "Program too big to fit in memory"
error message. But if I load a program which occupies this 19kbytes of
UMB, and try again "lh cwspdmi", it works (at least this is a workaround
:). I'm just curious, whether this problem only exists on my system?

Laszlo

-----------------

 Modules using memory below 1 MB:

  Name           Total       =   Conventional   +   Upper Memory
  --------  ----------------   ----------------   ----------------
  MSDOS       14,349   (14K)     14,349   (14K)          0    (0K)
  HIMEM        1,168    (1K)      1,168    (1K)          0    (0K)
  FBOOT        1,648    (2K)          0    (0K)      1,648    (2K)
  SRDXMSS        752    (1K)          0    (0K)        752    (1K)
  PTICD        6,592    (6K)          0    (0K)      6,592    (6K)
  SETVER         592    (1K)          0    (0K)        592    (1K)
  COMMAND      3,136    (3K)          0    (0K)      3,136    (3K)
  WCED        15,872   (16K)          0    (0K)     15,872   (16K)
  FILES        2,592    (3K)          0    (0K)      2,592    (3K)
  NCACHE2     16,400   (16K)          0    (0K)     16,400   (16K)
  NCACHE2     12,928   (13K)          0    (0K)     12,928   (13K)
  SHSUCDX     10,832   (11K)          0    (0K)     10,832   (11K)
  LSL          5,312    (5K)          0    (0K)      5,312    (5K)
  NE2000       5,152    (5K)          0    (0K)      5,152    (5K)
  IPXODI      16,304   (16K)          0    (0K)     16,304   (16K)
  NETX        45,168   (44K)          0    (0K)     45,168   (44K)
  Free       659,120  (644K)    639,600  (625K)     19,520   (19K)

Memory Summary:

  Type of Memory       Total   =    Used    +    Free
  ----------------  ----------   ----------   ----------
  Conventional         655,360       15,760      639,600
  Upper                162,800      143,280       19,520
  Reserved             393,216      393,216            0
  Extended (XMS)    32,343,056   15,254,544   17,088,512
  ----------------  ----------   ----------   ----------
  Total memory      33,554,432   15,806,800   17,747,632

  Total under 1 MB     818,160      159,040      659,120

  Largest executable program size        639,584   (625K)
  Largest free upper memory block         19,184    (19K)
  MS-DOS is resident in the high memory area.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019