www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/02/04:37:50

Date: Tue, 2 Feb 1999 11:03:27 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Peter Davis <pdavis AT wxs DOT nl>
cc: djgpp AT delorie DOT com
Subject: Re: RSXIDE memory problem?
In-Reply-To: <794tg6$sp2$1@reader2.wxs.nl>
Message-ID: <Pine.SUN.3.91.990202110301.13819D-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Mon, 1 Feb 1999, Peter Davis wrote:

> He sets NUM to 1000 and the (Visual C) .exe file he provides works for me.
> If however I compile the .c file with RSXIDE, I get a fatal error upon
> execution (the one that advises you to contact the supplier if the problem
> persists) if NUM is greater that about 500; lower values work fine.

What does "sizeof(POINT)" return?  If it's a large number, and if the
array of POINT structures is declared inside some function, you might
be overflowing the stack.

Try declaring it outside any function, and see if that helps.

This is explained in section 15.9 of the DJGPP FAQ list.

- Raw text -


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