From: Charles Sandmann 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: 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?