Message-ID: <001a01bf2a1b$508f10a0$641e13ac@garfield.gobi-gotha.de> From: "Sebastian Buntin" To: Subject: problem with large arrays -> SIGSEGV Stack Fault Date: Mon, 8 Nov 1999 19:58:49 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Reply-To: djgpp AT delorie DOT com Hi! (excuse, but my english isn't very well...) since some weeks I'm using DJGPP (with allegro). now, I decided to code some 3d-stuff. but I got a problem with my (running) program: code: typedef struct { float x,y,z; float w; int faces; int faceto[10]; } vector3d; int main () { // some declarations.... int k; vector3d obj[8000]; printf("HELLO\n"); for (k=0;k<8000;k++) do_some_stuff(&obj[k], var1, var2); // rest of code (switch to graphic mode, putpixel, etc...) } using this code works very well (and of course FAST)...but if I increase the array-size, or add MANY more variables, the program still compiles very well...but breaks with SIGSEGV Stack Fault at eip=00001b21 [list of registers etc.] It doesn't print HELLO, so I think I compile progs with RHIDE, ALLEGRO, MIDAS. Operating system DOS under Win98. (<- Is this the problem?? :-) ) I read, MEMORY isn't a problem for 32bit Protected mode.... It has to work with nearly with an array-size of !! 80000 !! at the same time....... can you help me? or give me a workaround?? (with some source code... ;-) ) BYE! Sebastian Buntin