delorie.com/archives/browse.cgi | search |
Message-ID: | <3872B826.B7C010E@caresystems.com.au> |
Date: | Wed, 05 Jan 2000 13:19:02 +1000 |
From: | leon <Leon AT caresystems DOT com DOT au> |
X-Mailer: | Mozilla 4.7 [en] (Win95; I) |
X-Accept-Language: | en |
MIME-Version: | 1.0 |
To: | djgpp AT delorie DOT com |
Subject: | Re: Array crashes my program! |
References: | <38729762 DOT 6F966CF7 AT netcom DOT ca> |
Reply-To: | djgpp AT delorie DOT com |
MM wrote: > A simple program of the form > int main (void) > { > int array[1000000]; > return (0); > } > > continually crashes my program. The symified error message complains > about something called > the __djgpp_exceptional_table. > If I decrease the size of the array it doesn't crash but leaving it as > is or making it bigger makes it crash > and I know I have enough ram to address that much memory. > Dynamically allocating that amount works fine. Anyone know what's > wrong? from my limited understanding - if you new something - it goes on free store, but if declared as data emeber of class - goes onto stack. The stack is much smaller in size (memorywise). Now in modern systems (well ala win95) i don't think it is an issue as every program works in virtual space - but since we are tralking about comiling dos programs - perhaps it is still valid...
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |