Xref: news2.mv.net comp.os.msdos.djgpp:3071 From: gaghon AT nevada DOT edu (GEORGE GAGHON) Newsgroups: comp.os.msdos.djgpp Subject: problem with DJGPP and arrays. Date: 24 Apr 1996 03:03:48 GMT Organization: University of Nevada System Computing Services Lines: 34 Message-ID: <4lk5mk$rl4@news.nevada.edu> NNTP-Posting-Host: pioneer.nevada.edu NNTP-Posting-User: gaghon To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Ok I am having a problem with DJGPP and large arrays. All my arrays do not exceed 2megs of RAM (combined). I have the arrays inited like so: int array1[20000], array2[10000], array3[70000] ... .... int array7[5300], array8[1200] ... .... int array 12[70000] When I try to binary load using _open or fopen, when I get to array7[] I get an traceback error like so... fread+66 load_save+54 line xxxx of name.c main+199 line xxx of name.c cntr_???+115 I am assuming that this program calls 'main' If I put a dummy array in like: int array_dummy[5300], array7[5300], array8[1200]... then it works ok. So far all the other arrays I have tested work fine when loading a binary file into it. I looked in the FAQ and found nothing that helped. Whats going on? THanks Vince.