Mail Archives: djgpp/1998/02/19/13:30:08
On Thu, 19 Feb 1998, Anthony.Appleyard wrote:
> > ABC.CC reserves(_go32_dpmi_allocate_dos_memory() etc) some conventional
> > memory, whose address it sends to XYZ.CC as hex chars as a call argument,
> > and XYZ.CC can leave information in that area for ABC.CC to read.
> but I was told "no, ABC's conv mem is swopped out while XYZ.CC is running".
Whoever told you that was dead wrong. If ABC.CC allocates DOS memory, it
stays allocated until ABC.CC exits. DOS memory is almost *never* swapped
out (because DOS lives there too, and you cannot swap DOS). Even if it
*is* swapped out, it will be swapped in when you try to access it.
Actually, DJGPP uses this technique all the time to pass long command
lines to child programs. So you can safely use it as well.
- Raw text -