X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "Rod Pemberton" Newsgroups: comp.os.msdos.djgpp Subject: Re: resident PMODEDJ? Date: Sun, 16 Feb 2014 07:45:39 -0500 Organization: Aioe.org NNTP Server Lines: 34 Message-ID: References: <02698100-1f10-4b86-ac12-39765c9109c8 AT googlegroups DOT com> NNTP-Posting-Host: CNsg4fVcCsvs3UaOgZtQCw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Complaints-To: abuse AT aioe DOT org User-Agent: Opera Mail/12.16 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Bytes: 2412 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Sat, 15 Feb 2014 22:13:44 -0500, wrote: >> I wanted to try to use PMODEDJ instead of CWSDPMI, since >> AIUI it doesn't have paging enabled. The CWSDPMI TSR can >> be told to stay resident with the '-p' parameter. > > You mean paging or swapping? I meant paging. Thanks for the info though. The issue is I need to keep PMODEDJ resident (to execute both programs). Keeping PMODEDJ resident would allow me to see if the TSR code is working or failing the same way for both. I.e., if it works for one but not the other, then I likely have a paging or perhaps a memory locking problem. If it fails for both, then I more likely have some other coding mistake. I was going to look at PMODEJ's code when I get a chance to see what triggers it to unload. It stays resident for one use. So, there is something that causes it to unload, e.g., counter, pointer, etc. It might be possible to recompile it, or patch a byte to prevent it from unloading. A small TSR or two to modify interrupts might work too. I don't know if any of those ideas will be easy or if such an attempt will "break" something internally in PMODEDJ. Usually, the DPMI host cleans up when it exits. So, forcing a DPMI host to stay resident when it wasn't designed to do so may prevent it from cleaning up or initializing things properly with multiple uses. But, I won't know any of that for sure until I look and try, unless someone more experienced with PMODEDJ posts some in-depth information. Rod Pemberton