delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/10/16/13:15:03.1

From: Charles Sandmann <sandmann AT clio DOT rice DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Terminate and Stay resident in CWSDPMI
Date: Wed, 16 Oct 2002 11:53:42 CDT
Organization: Rice University, Houston TX
Lines: 20
Message-ID: <3dad9996.sandmann@clio.rice.edu>
References: <aok4tt$buu$1 AT news1 DOT xs4all DOT nl>
NNTP-Posting-Host: clio.rice.edu
X-Trace: joe.rice.edu 1034787832 18066 128.42.105.3 (16 Oct 2002 17:03:52 GMT)
X-Complaints-To: abuse AT rice DOT edu
NNTP-Posting-Date: 16 Oct 2002 17:03:52 GMT
X-NewsEditor: ED-1.5.9
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

> Oke, the keep functions seems to work in a stand alone version. Right now I
> have 2 projects running. One is called "Main" and the other is "Child". Main
> seems to running correct, but when he is loading the child program (this one
> should be keeped in memmory) the complete program and all surroundings seems
> to crash. But child.exe itself is yet working ok when I am starting only
> that one. My guess is that the child program is overlapping the main
> program, but I use spawn with P_WAIT so that would not be it. Any
> suggestions?

You shouldn't TSR a child program - it will completely confuse DPMI.

The child program is nested; if you TSR it on return to the main program
I'm not sure what would happen.  (We would have confusion on ownership
of PSPs, memory blocks, etc).  

There might be a fix, but maybe not. It would require some experimentation
to see what's breaking - I don't have time right now.  

Can you redesign to TSR the parent?

- Raw text -


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