Date: Wed, 17 Jun 1998 13:12:41 +0300 (IDT) From: Eli Zaretskii To: MalcolmJ7 cc: djgpp AT delorie DOT com Subject: Re: CWSDPMI Problem with Dos Shell In-Reply-To: <1998061708291200.EAA19236@ladder03.news.aol.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.