Message-ID: <01BD4BB1.447D5140@n072h048.thezone.net> From: Luke Bishop To: "djgpp AT delorie DOT com" , "'Salvador Eduardo Tropea (SET)'" Subject: RE: Allegro And Alternate Memory Handling Date: Mon, 9 Mar 1998 23:14:43 -0330 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8bit Precedence: bulk >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...).