Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > MSDOS Programmer > Re: TSR Deinsta...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 427 of 494
Post > Topic >>

Re: TSR Deinstallation

by "R.Wieser" <address@[EMAIL PROTECTED] > Nov 30, 2006 at 08:52 PM

Alex Buell <alex.buell@[EMAIL PROTECTED]
> schreef in berichtnieuws
20061128233721.5714d557.alex.buell@[EMAIL PROTECTED]
 Alex,

> I'm just wondering what's the equivalent for releasing
> itself from memory. Does anyone knows?  (don't tell
> me about the 0x21 int TSR calls as I already know
> about them)

Alas, there is none,  You see, the TSR mechanism has never been written to
allow for un-TSR-ing.

The problem that might occur is that another program links to the vectors
you have grabbed, meaning that that other program now points into your TSR
code.   And that means you can't remove your code, otherwise that other
program (which is now *above* you in the chain) will eventually point into
never-never land (when your code gets, after being released, overwritten
by
another program), and crash the computer.

So, you first need to check if the vector still points to your code.  If
not, you will need to at least leave a stub that links to the
(further-going) chain.

If you are not linked to you can simply un-link, and release the memory
the
code occupied.   If you where linked too, you can shrink the memory-block
to
just encompass the stub (its a good idea to put the entry-point of your
vectors as high-up in the code as you can get them).

Hope that helps.

Regards,
  Rudy Wieser




 2 Posts in Topic:
TSR Deinstallation
Alex Buell <alex.buell  2006-11-28 23:37:21 
Re: TSR Deinstallation
"R.Wieser" <  2006-11-30 20:52:46 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 7:48:18 CDT 2008.