Mail Archives: djgpp/2001/05/10/04:04:03
On Thu, 10 May 2001, ywshei wrote:
> My program is running under DOS 7.0 (without win98 GUI).
> There are five ISRs(COM1/0x3f8/IRQ4, COM2/0x2f8/IRQ3, COM3/0x3e8/IRQ5,
> 8255DIO/0xa00/IRQ7, PCI9111 A/D, D/A, DIO card) working in the same time. It
> is hardware dependent.
In that case, it's almost certain that the problem is the failure to
lock some code or data which are touched by a hardware interrupt
handler.
The FAQ describes the `_CRT0_FLAG_LOCK_MEMORY' bit in the DJGPP
startup flags variable which will cause all memory of your program to
be locked automatically. I suggest to try that and see if it solves
the problem. (If your program is small enough to fit into the
available physical RAM, and if it never needs to run on memory-starved
machines, you can simply leave the `_CRT0_FLAG_LOCK_MEMORY' bit set.)
- Raw text -