delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/14/16:03:06

From: Ian Chapman <ichapman AT nt DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Program fails when the size of an array of struct is increased.
Date: Wed, 14 Oct 1998 15:37:39 -0400
Organization: Nortel
Lines: 18
Message-ID: <3624FD83.180F1108@nt.com>
References: <3624E79B DOT 4A34529 AT worldhq DOT com>
NNTP-Posting-Host: bcarib90.ca.nortel.com
Mime-Version: 1.0
X-Mailer: Mozilla 4.06 [en] (Win95; I)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi,
	try running under gdb (gnu debug) and do a watch on this structure and
its elements.  It'll slow down no end but should see if it's getting got
and by what.

		Regards Ian.


> typedef struct {
>  char product[PRODUCT_LEN];
>  int stock ;
>  int price ;
>  char bar[BAR];
>  int active ;
>  int quantity ;
>  char vat_code ;
> } SellRecord ;
>

- Raw text -


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