[comp.sys.ibm.pc] Killing TSRs

richard@bud.UUCP (richard karasik) (04/28/88)

Is there any way to kill TSRs without rebooting? For some applications I
run many TSRs, and when I switch applications, I would like to kill off
the current TSRs and install new ones -for the new application.

Is there any way outside of rebooting to do this???

richard
-- 
-----------------------------
 sun!arete!bud!richard      ||"No, I said the BITS .. massage the BITS"
  " !  "  ! " !kass!richard || Richard Karasik
  " !  "  !richard          || Arete Systems Inc   408 922 8271

rmb384@leah.Albany.Edu (Robert M. Bownes III) (04/29/88)

In article <139@bud.UUCP>, richard@bud.UUCP (richard karasik) writes:
> Is there any way to kill TSRs without rebooting? For some applications I
> run many TSRs, and when I switch applications, I would like to kill off
> the current TSRs and install new ones -for the new application.
> 
> Is there any way outside of rebooting to do this???
> 

	This isn't a problem. The code to do so was published about 1.5
years ago in a Byte special PC issue. It is pretty trivial to write. You need
to remove the entry from the interrupt table and replace it with the original
entry (which you could have saved at boot time - hint hint- ) and then you 
need to free the memory the TSR used. I wrote this once upon a time but
don't have the source anymore. 
	For better hints, look in the book "The MS-DOS Developers Guide" by
Angermeyer and Jaeger, available at Waldenbooks. I relied on that and the
Byte issue I mentioned earlier.

	Bob

-- 
Bob Bownes, Aka Keptin Comrade Dr Bobwrench III	|  If I didn't say it, It
bownesrm@beowulf.uucp  (518)-482-8798		|  must be true.
{steinmetz,brspyr1,sun!sunbow}!beowulf!bownesrm	|	- me, tonite -

mintz@hpindda.HP.COM (Ken Mintz) (04/29/88)

> Is there any way to kill TSRs without rebooting?

  Many TSRs that I've seen have a way of removing themselves from memory,
  for example by running them again with a "-r" command line option.  I've 
  often wondered how this is done.  Any insights or pointers to explanations?

Ken Mintz

jerryp@cmx.npac.syr.edu (Jerry Peek) (05/27/88)

In article <139@bud.UUCP> bud!richard (richard karasik) writes:
> Is there any way to kill TSRs without rebooting? For some applications I
> run many TSRs, and when I switch applications, I would like to kill off
> the current TSRs and install new ones -for the new application.
> 
> Is there any way outside of rebooting to do this???

I saw some utilities that do this.  I think it was in PC Magazine's section
of freebie utilities.  There were two programs.  You run the first, called
something like "mark", before you install your TSR's.  Then install the TSR's.
When you want to remove the TSR's, you run the program called "release".

I've seen these programs on BBS's.  Check your local board.

--Jerry Peek, Northeast Parallel Architectures Center, Syracuse, NY 13244-1260
  jerryp@cmx.npac.syr.edu
  +1 315 423-4120

rusty@cadnetix.COM (Rusty) (05/31/88)

In article <509@cmx.npac.syr.edu> jerryp@cmx.npac.syr.edu (Jerry Peek) writes:
>In article <139@bud.UUCP> bud!richard (richard karasik) writes:
>> Is there any way to kill TSRs without rebooting? 
>I've seen these programs on BBS's.  Check your local board.

We also had a posting recently in comp.binaries.ibm.pc of just such a thing.
I still have it, if you cannot find it anywhere else.  Send me a disk
(1.2 meg or 360k MS/Dos or PC/dos) with a note telling me 'tsr stuff' and
I will place it on and return.  I will not use email, lest we lose usenet
access due to our heavy use of it.  Sorry about that.
Please include return postage.  Other donations glady accepted! :-)
Send to : Rusty Carruth \ P.O. Box 7173 \ Boulder, Co 80306, not
to the .sig below.

    Rusty Carruth	N7IKQ	DOMAIN: rusty@cadnetix.com
    Cadnetix Corp.		UUCP:   cadnetix!rusty
    5775 Flatiron Pkwy.	        	{uunet,boulder,nbires}!cadnetix!rusty
    Boulder, CO 80301		(303) 444-8075