Date: Sun, 15 Feb 1998 14:01:55 +0200 (IST) From: Eli Zaretskii To: Myknees cc: djgpp AT delorie DOT com Subject: Re: DOS mem command crashes after running prog In-Reply-To: <19980215075100.CAA15940@ladder03.news.aol.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On 15 Feb 1998, Myknees wrote: > After the program exits, if I type mem/c/p or even just mem, Windows shuts down > the DOS box and shows an error that says, > "This program has performed an illegal operation and will be terminated... > The program tried to execute an invalid instruction. Fault location 0E2D:5C52 > Interrupts in service: None." You might be screwing the DOS memory chain, or overwriting somebody's PSP. Try running your program in plain DOS under CWSDPMI, it might catch some garbled pointer you dereference, before it actually does some harm. If that doesn't help, you will have to selectively disable parts of your program and zero in on the code that produces this atrocity.