This is turning into a real can of worms :(

What if a TSR is loaded by an application via one of the EXEC functions ?
Not unusual.  Then it inherits the open files of the parent.

If the TSR then closes the file handle of STDOUT before return to the
parent, that parent may be speechless.

It seems a safer approach is for the TSR to keep hands off and let the
parent close the file if that is what is desired. 

But what if the parent is Command.com ?  I just checked and neither 
DOS Int27 or Int21sub30 automaticaly closes files when the TSR returns
to DOS.

What if the launcher closes its STDOUT handle before loading the TSR ?
Then it knows it has to open it again when the TSR is finished loading.
But this defeats the ability of the application to re-direct STDOUT.

Anyway, I don't think you can close DOS's handle to STDOUT but I don't
know for sure.

I would like to close the can please. <g>







- Clarence Verge
- Still using Arachne V1.62 ....

Reply via email to