delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/25/10:45:16

Xref: news2.mv.net comp.os.msdos.djgpp:6401
Newsgroups: comp.os.msdos.djgpp
From: Robert Jaycocks <r DOT jaycocks1 AT lut DOT ac DOT uk>
Subject: Re: C Program crashes in Djgpp
Sender: usenet AT lboro DOT ac DOT uk (Usenet-News)
Message-ID: <31F763F2.3C6D@lut.ac.uk>
Date: Thu, 25 Jul 1996 12:09:22 GMT
To: PENG ZHOU <pengzh AT ix DOT netcom DOT com>
References: <4t3hfa$p5n AT sjx-ixn6 DOT ix DOT netcom DOT com> <4t58rp$i57 AT dfw-ixnews3 DOT ix DOT netcom DOT com>
Mime-Version: 1.0
Organization: LUT
Lines: 24
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

PENG ZHOU wrote:
[stuff deleted]
> >    if ( (strcmp(argv[arr],"-help)==0) || (strcmp(argv[arr],"-h")==0)[stuff deleted]
> >    if ( (strcmp(argv[arr],"-file)==0) || (strcmp(argv[arr],"-f")==0)[stuff deleted]
> Thank you all for giving me the suggestions about this.  But it seemed
> that I've find the problem.  I think it's about the network.  Every
> time it is turned on on my Win95 machine the program crashes with some
> general protection faults.  Though i've seen some division by zero
> faults too, which I don't know.
> 
> ----
> pengzh AT ix DOT netcom DOT comIt was pointed out (I didn't read your code correctly and missed these
mistakes) that you missed the endquotes on the to lines above. These
should be
  if ( (strcmp(argv[arr],"-help")==0) || (strcmp(argv[arr],"-h")==0)

  if ( (strcmp(argv[arr],"-file")==0) || (strcmp(argv[arr],"-f")==0)
This of course could be a typing error, unless by some fluke it does
manage to compile.

Have you tried running it outside win95 in DOS. Reboot into DOS, and see
what happens.

Robert

- Raw text -


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