Mail Archives: djgpp/1995/01/19/12:46:53
> Subsequently, I have turned the mouse cursor off before the disk reads
> and then turned the mouse cursor on after the disk reads/writes and this
> seems to stop the crashes (MouseEraseCursor, MouseDisplayCursor). This
> seems to make the program work, but I do not necessarily understand why.
This is only a wild guess, but it is usually considered harmful
to mix disk writes and serial communications (in this case, with
the mouse, which is serial, right?). There even is a tiny TSR
called RTS (look on SimTel/msdos/modem/rts14.zip) which lowers
the RTS bit when disk cache flushes its buffers, so that serial
port won't lose characters due to this. When you disable the
cursor, the mouse driver stops communicating with the mouse, so
the problem doesn't happen. This effect might be amplified by
the hardware interrupt handling in DJGPP 1.1x, which leaves
much to be desired.
- Raw text -