delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/27/11:28:09

From: G DOT DegliEsposti AT ads DOT it
To: deseeker <deseeker AT yahoo DOT com>
cc: djgpp AT delorie DOT com
Message-ID: <C1256611.0052E2E1.00@vega.ads.it>
Date: Wed, 27 May 1998 17:18:09 +0200
Subject: Re: My program crashed in dos mode!
Mime-Version: 1.0




>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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019