www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/01/13:00:30

From: "David Whitcombe" <mxedisn AT rof DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: My 3d-Engine acts as if on drugs
Date: Wed, 30 Jun 1999 23:36:23 -0600
Organization: Rocky Mountain Internet - 1(800)-900-RMII
Lines: 36
Message-ID: <7lev2f$kem$1@news1.rmi.net>
References: <37710338 DOT 8513182C AT swipnet DOT se> <3771203B DOT 1341C69F AT americasm01 DOT nt DOT com>
NNTP-Posting-Host: 209.38.35.81
X-Trace: news1.rmi.net 930807695 20950 209.38.35.81 (1 Jul 1999 05:41:35 GMT)
X-Complaints-To: abuse AT rmi DOT net
NNTP-Posting-Date: 1 Jul 1999 05:41:35 GMT
X-Newsreader: Microsoft Outlook Express 4.72.3155.0
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Campbell, Rolf [SKY:1U32:EXCH] wrote in message
>Anders David Skarin wrote:

...
>> The thing is that when my project becomes large (a few thousand lines)
>> it always starts to act the same way.
>> All of a sudden the program will start crashing at points in the program
>> that havn't been touched for a long time. My 3ds-reader can't find the
>> correct chunks in the files anymore although i havn't changed a line.
...
>    Old code (that worked before) failing now, is a sure sign of wild
>pointer access.


I can think of a lot of things that might be barfing...

One thing I'd check for is how much global space you're using... I noticed
some odd problems when I tried to, say, create a few 50000 byte char
arrays with:
char blob[50000];
Not a good idea.

Back in the (bad) old days, before DPMI, my roomate and I exhausted a 64k
segment with global stuff, and huge local variables.

Make sure you're letting the memory manager (be that "new" or "malloc")
allocate big chunks of stuff.

Dunno if this helps...

mxedisn AT rof DOT net




- Raw text -


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