home *** CD-ROM | disk | FTP | other *** search
- DOS5/MIRROR users - caution!
-
- There is a bug in MIRROR.COM that comes with DOS 5.0
- that may cause programs to hang "randomly". After investigation,
- we were able to track the originator of this bug:
-
- Int 21h, AH=41h (delete file with ASCIIZ)
- and Int 21h, AH=13h (delete file with FCB)
-
- are the sinners: when deleting a file with size 0 (zero),
- the DOS interrupt returns with interrupts clear. This may
- cause programs to hang.
-
- How to use MIRFIX:
- Load MIRFIX immediately after loading MIRROR /Tx in your
- AUTOEXEC.BAT file. MIRFIX can be kept quiet appending any
- command line parameter, e.g.:
-
- MIRFIX shutup
- or MIRFIX x
-
-
- How we detected this bug:
-
- one of our programs uses a temp file to buffer data. This temp
- file is deleted after the operation has completed, and the program
- reenters an event loop (keyboard, mouse). At times there is no
- need to use the temp file so its size remains zero. In this case
- DOS (to be exact: MIRROR) leaves the interrupt flag clear, and after
- reentering the event loop, no more events can be processed since CLI
- disables keyboard, timer, and mouse as well. In that case, you simply
- have to cold reboot the machine.
-
- Since we believe this problem could affect a lot of programs, we
- give this bug fix TSR away for free public use. Anyone may include
- the compiled TSR as well as the source to distribution and sample disks,
- as long as our developer's notice is not removed.
-
- When devloping a program it would be a good idea not to rely on proper
- OS processing, but to enable interrupts after a call to the OS has been
- made. (we cannot assure that we found all bugs in DOS 5.x !!!)
-
- Hope the guys at Central Point and Microsoft will keep their eyes open to
- create bug free OS software sometimes !!!
-
-
- Ernest Vogelsinger,
- EDP-Services
- Vienna, Austria
-
-