Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Swap! (Developers)

posted by ecm Homepage E-mail, Düsseldorf, Germany, 25.05.2011, 14:13
(edited by cm on 25.05.2011, 14:25)

> > I don't think that would really be of any use. It might prevent
> > interference by some TSRs which check for InDOS before issuing
> > 21.48/.49/.4A but it's not a good solution. (In fact, I think protecting
> > critical sections by the InDOS flag is generally not a good idea and
> > should only be done if really necessary.)
>
> ...

I wasn't referring to the hypothetical TSR associating resources with other processes here, I was referring to very real TSRs which might pop up pretty much any time interrupts are enabled and which could interfere with your memory reallocation if you relied on every TSR to check for InDOS before it modifies MCBs one way (Int21) or another (direct access).

> Now the price being cases where it won't be able to run for lack of memory.
> Of course that is more theoretical than practical for our little keyboard
> helper!

If your program takes up that much memory swap it to a file ;-)

Seriously though, the only case in which the complete process relocation would fail was if there wasn't enough space available to relocate the complete process. If you trim the process to be relocated as much as possible first, you'll only have to allocate 80 bytes for the reduced PSP and enough space for the remaining installer code (including the image to install later on) plus some stack space. Assuming a 512 byte image (I think your installed TSR currently is about that large) the relocated installer process can take up less than 1024 bytes.

> meanwhile potential users can rely on the last version advertised in the
> Announcements section.

Yes, I'd agree that this version is the best for end users right now.

---
l

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 248 users online (0 registered, 248 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum