[comp.windows.ms.programmer] Windows closes my TSR file handles !?

oeschi@netmbx.UUCP (Johann Deutinger) (02/10/91)

I have written a TSR (using TesSeRact) that sometimes tries to keep
one or two files open. Whenever it opens a file during a Windows enhanced
mode session (triggered for example by INT28) and I leave Windows, the file
will be closed without my knowledge. At least it seems to be closed. When
I get DOS-error 6 (illegal handle) and reopen the file, everything works
fine.

Do I have to use the enhanced mode API (INT2F) to protect some memory
areas in order to protect my file handles or should I wait for a new
Windows version (I still use the first release)?

-- 
oeschi@netmbx.UUCP     | Johann Deutinger
voice +49 30 396 50 21 | Ferrari electronic GmbH (.. no, we don't sell cars)
fax   +49 30 396 80 20 | Beusselstr. 27  -  1000 Berlin 21  -  FRG