www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/17/06:15:07

Date: Wed, 17 Jun 1998 13:12:41 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: MalcolmJ7 <malcolmj7 AT aol DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: CWSDPMI Problem with Dos Shell
In-Reply-To: <1998061708291200.EAA19236@ladder03.news.aol.com>
Message-ID: <Pine.SUN.3.91.980617130839.19673A-100000@is>
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019