Mail Archives: djgpp/1999/07/01/13:00:30
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 -