From: Litmus Dragon Subject: Huge project -- now stuck -- help please! Newsgroups: comp.os.msdos.djgpp Message-ID: <0237dd28.53616f49@usw-ex0101-006.remarq.com> Lines: 45 Bytes: 2131 X-Originating-Host: 155.45.54.60 Organization: http://www.remarq.com: The World's Usenet/Discussions Start Here X-Wren-Trace: eA0oAAEYXxVeQRARBVgfAA0fGgcGKUAaAQ0BBxAAWk4NBg1dVhhWV1RCXFxNG04= Date: Fri, 21 Jan 2000 10:51:13 -0800 NNTP-Posting-Host: 10.0.2.6 X-Complaints-To: wrenabuse AT remarq DOT com X-Trace: WReNphoon4 948481154 10.0.2.6 (Fri, 21 Jan 2000 10:59:14 PST) NNTP-Posting-Date: Fri, 21 Jan 2000 10:59:14 PST To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I've been working on a project called Dragon Engine for about 4 months now. Before I go into details on the problem I am having I should first say that I have never taken any classes on C programming and have learned from the net and from a couple of books. This program (homepage is http://home.fuse.net/litmus/de.html) is an engine for making tile-based RPGs along the lines of the old Ultima games. The editor and the play game engine are coded into one C file, which at present is 17,000+ lines of code (yes, that's not a typo). Here's my problem. I just finished adding a new section to the code, composed of maybe 300 new lines. Up until this point the program was compiling fine. I went to compile it this time and GCC returned an error "Abort!". This was the complete error, no specifics on why it aborted, no line referenced in the C file, etc. To troubleshoot this I remarked out the new code sections with "/*" and "*/" and tried to compile again. This time it compiled fine. I continued along these lines, remarking out different sections of the new code, attempting to narrow down what was causing this problem. I've narrowed it down to three totally innocent looking lines of code: titlea[x][y]=pickt; titlear[x][y]=picktr; titleset[x][y]=menusel-1; If I remark out these lines of code, the entire program compiles fine. If I leave them in, I either get a "this program has preformed an illegal operation" from GCC or I get the mysterious "Abort!" message. Just to be completely clear, it's not doing these things at run-time, it's doing them during compile. All of those variables listed above (in the offending bit of code) are integers. I am using DJGPP v2, GCC, and the Allegro library. The only thing that I can think of is that maybe I have exhausted the available memory for my program. Is there an upper limit? Or is something else going on here? Any help would be greatly appreciated! /_itmus * Sent from RemarQ http://www.remarq.com The Internet's Discussion Network * The fastest and easiest way to search and participate in Usenet - Free!