Mail Archives: djgpp/2000/09/23/15:48:47
> From: Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p>
> Newsgroups: comp.os.msdos.djgpp
>
> >Memory that is freed can be reused by your program (through
> >malloc, calloc or realloc). Because it isn't returned to the
> >DPMI server it can't be reused by a _different_ program,
>
> True...
>
> >but that's rarely a problem.
>
> Unless your program calls spawn() or system() that is...
No, it shouldn't be a problem even if `spawn*' functions _are_
called. The DPMI server is expected to page the parent program out of
memory to accomodate the allocations required by the child program.
This actually works, unless the child program uses raw XMS or similar
calls to ask for extended memory, and even then only under certain
memory managers.
- Raw text -