Mail Archives: djgpp/1998/06/17/06:15:07
On 17 Jun 1998, MalcolmJ7 wrote:
> When I try to run the other program I get a general protection error.
> So I need to know if there is a way to unload CWSDPMI before i shell(spawnl)
> and reload it when spawnl is done.
You cannot unload CWSDPMI while the parent program runs. You might think
that the parent program doesn't exist while you are shelled to DOS, but
that is not true: some parts of the startup code are still active (for
example, the keyboard handler still hooks Int 9h). Not to mention the
fact that there would be no way to reconstruct the memory allocation of
the program if you unload CWSDPMI. Therefore CWSDPMI must stay in memory.
A better way is to find out why does the other program crash and either
correct that or get another version of it which can run even though
CWSDPMI is in memory.
- Raw text -