www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2014/02/16/08:00:20

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: "Rod Pemberton" <dont_use_email AT xnohavenotit DOT cnm>
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: <op.xbdkedfk5zc71u@localhost>
References: <op DOT xbbhyde95zc71u AT localhost>
<02698100-1f10-4b86-ac12-39765c9109c8 AT googlegroups DOT com>
NNTP-Posting-Host: CNsg4fVcCsvs3UaOgZtQCw.user.speranza.aioe.org
Mime-Version: 1.0
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, <rugxulo AT gmail DOT com> 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

- Raw text -


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