From: G DOT DegliEsposti AT ads DOT it To: deseeker cc: djgpp AT delorie DOT com Message-ID: Date: Wed, 27 May 1998 17:18:09 +0200 Subject: Re: My program crashed in dos mode! Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Precedence: bulk >I'm writing a simple 'touch' program using functions like setftime(), >_chmod() ..etc. >It works fine under Win95's dosshell, but when I quit Win95 completely >into DOS and run it, it goes BOMB. Why???? The most probable cause is something in your program, such as a null pointer access. Usually these are bugs which remain hidden in win95 because it has a buggy dpmi virtual memory management :-) In bare dos you are using another dpmi server (cwsdpmi ?) which traps the invalid memory access and bombs. You can have a lot of help looking at those funny numbers printed when your program crashed. Have a look at faq 9.1 and 9.2 for more information on this topic (file faq210b.zip). ciao Giacomo