delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/28/19:05:12

From: "Marp" <Marp AT 0 DOT 0 DOT 0 DOT 0>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Command Line parameters
Date: Mon, 28 Jun 1999 18:19:26 -0400
Organization: Netcom
Lines: 29
Message-ID: <7l8sda$5oo@dfw-ixnews21.ix.netcom.com>
References: <7l8qit$47s AT dfw-ixnews21 DOT ix DOT netcom DOT com> <19990628180541 DOT 22728 DOT 00000969 AT ng-ch1 DOT aol DOT com>
NNTP-Posting-Host: prn-nj3-13.ix.netcom.com
X-NETCOM-Date: Mon Jun 28 5:19:22 PM CDT 1999
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I made a mistake Change the main() line to say int main(int argc, char
*argv[]) sorry.
FixAllPCs <fixallpcs AT aol DOT com> wrote in message
news:19990628180541 DOT 22728 DOT 00000969 AT ng-ch1 DOT aol DOT com...
> When I executed that, I got this output:
>
> C:\c\test>argumentsc Hello
> argv[0]: V
> Exiting due to signal SIGSEGV
> General Protection Fault at eip=0000659e
> eax=00000001 ebx=00000000 ecx=00000073 edx=ffffffed esi=ffffffff
edi=0008eacc
> ebp=0008eaa0 esp=0008d6c0 program=C:\C\TEST\ARGUME~1.EXE
> cs: sel=00a7  base=82c5b000  limit=0009ffff
> ds: sel=00af  base=82c5b000  limit=0009ffff
> es: sel=00af  base=82c5b000  limit=0009ffff
> fs: sel=0087  base=0000efa0  limit=0000ffff
> gs: sel=00bf  base=00000000  limit=0010ffff
> ss: sel=00af  base=82c5b000  limit=0009ffff
> App stack: [0008eaf0..0000eaf0]  Exceptn stack: [0000e9d8..0000ca98]
>
> Call frame traceback EIPs:
>   0x0000659e
>   0x00002972
>   0x000015a2
>   0x00002546
>


- Raw text -


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