delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/20/13:24:52

From: Niko Salminen <wolfram AT draconus DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Too many conventional blocks?!
Date: Mon, 20 Sep 1999 19:21:41 +0300
Message-ID: <37E65F15.447905E@draconus.com>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 990913130741 DOT 8923E-100000 AT is>
NNTP-Posting-Host: m216m23hel.dial.kolumbus.fi
Mime-Version: 1.0
X-Mailer: Mozilla 4.5 [en] (Win98; I)
X-Accept-Language: en
Lines: 35
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com


Eli Zaretskii wrote:

> > _go32_dpmi_allocate_dos_memory() calls work just fine, but in one
> > function, it returns me a non-zero (an error) and allocates nothing.
> How much memory, overall, did you allocate?  Is it possible that you
> have used up all the conventional memory?

I tried to allocate about 32 bytes. However, the error disappeared when I
started using a large (about 20 kB) memory block for all the cases I
needed conventional memory. Is there a limit for how many
_go32_dpmi_seginfo blocks I may use? (That would be pretty lame)

> What, if any, are the differences between the code in functions that
> work and in the one that doesn't?  Do you ask for the same size, for
> example?

No differences. Even the size was the same.

> It is also possible that, due to some unrelated bug, your code
> overwrites the _go32_dpmi_seginfo structure, so the function gets it
> garbled.

No, because I call the function right after I set the required size. And I
traced it a zillion times, and it almost always failed.

Anyone know the reason for this?

--
---------------------------------------------
Wolfram / Coder / Draconus Entertainment Inc.
---------------------------------------------


- Raw text -


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