Mail Archives: djgpp/1998/03/10/21:35:10
>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 -