Mail Archives: djgpp/1997/03/10/11:02:28
On Mon, 10 Mar 1997, Andrew Crabtree wrote:
> I thought the
>
> #include <crt0.h>
> int _crt0_startup_flags = _CRT0_FLAG_LOCK_MEMORY
>
> did lock memory. Are you saying I need to explicitly call lock for the
> functions and variables?
No, if you included the above setting, all memory is locked. But you
should make sure that it is indeed locked, since the startup code
currently doesn't. It shouldn't be a problem with small programs and
machines which aren't too tight on RAM, though.
> Or is it the real mode memory I alloced that
> its complaining about?
AFAIK, you don't need to lock conventional memory at all, as it is never
swapped out (or else DOS itself could be swapped out, which is an absolute
no-no).
- Raw text -