www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/05/13/23:59:25

Date: Thu, 13 May 93 20:14:49 PDT
From: Peter Crowley <pcrowley AT qdeck DOT com>
To: JMILLER AT CHESS DOT EISC DOT UTOLEDO DOT EDU, djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Problem with debug32????

>This may be old stuff but I don't recall seeing anything about a problem with
>debug32 in which it is passed an invalid file name. I have tried this on 4
>different machines with the same result: The system dies requiring a reset
>by power off (on expensive machines) and reset button on the brand x clones.
>All the machines were running DOS 6 with emm386, 4dos 4.02 and combi (disk
>cache and ramdisk) version 1.13. Has anyone else experienced a similar
>problem?

This happens with 'go32 bogusfilename' too! 
If I remember rightly the problem is that the extender sets up it's 
environment then loads a.out. If an error occurs during the loading of the
a.out it exits without cleaning up.

If you can rebuild GO32 the easiest way to fix it is insert:

FILE fp = fopen(argv[1],"r"); 
if (!fp) exit(1);
fclose(fp); 

Probably somewhere just inside main() before the extender does anything
dangerous.

Peter Crowley


- Raw text -


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