www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/10/21:35:10

Message-ID: <01BD4BB1.447D5140@n072h048.thezone.net>
From: Luke Bishop <lbishop AT calvin DOT stemnet DOT nf DOT ca>
To: "djgpp AT delorie DOT com" <djgpp AT delorie DOT com>,
"'Salvador Eduardo Tropea (SET)'" <salvador AT inti DOT gov DOT ar>
Subject: RE: Allegro And Alternate Memory Handling
Date: Mon, 9 Mar 1998 23:14:43 -0330
MIME-Version: 1.0

>So: why you don't simply replace malloc/realloc/free from libc?

Simple, two reasons:
	A - I really am not sure how to do so in a decent manner.
	B - It fails to solve the problem of the calls to _go32_dpmi_lock_data.

	The problem is, the daemon locks all available pages upon startup.  This means that you can lock code, because it can be done before the memory initialize, but you CANNOT lock memory at runtime.  Of course, you can still use locked memory, but it must be done in the form of mem_alloc(size, LT_LOCKED, owner).
	I hope some solution can be made, because I have actually already tried three times to rewrite Allegro with no success (okay there was progress, but not nearly enough...).

- Raw text -


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