Re: [fpc-pascal] mysterious crashing, maybe related to setlength

2009-09-10 Thread Jonas Maebe
On 10 Sep 2009, at 09:49, David Emerson wrote: Just before I posted the other day, I had discovered a buffer overrun via range checking. I took care of it before writing my previous message. Maybe there is another buffer overflow that the range checker is somehow missing? If the overflow happ

Re: [fpc-pascal] mysterious crashing, maybe related to setlength

2009-09-10 Thread David Emerson
Thanks, Jonas! Just before I posted the other day, I had discovered a buffer overrun via range checking. I took care of it before writing my previous message. Maybe there is another buffer overflow that the range checker is somehow missing? There IS a local dynamic array to be finalized, so th

Re: [fpc-pascal] mysterious crashing, maybe related to setlength

2009-09-06 Thread Jonas Maebe
On 06 Sep 2009, at 10:16, David Emerson wrote: My program is crashing, and I just can't figure out why. Heaptrc has given me this rather cryptic info: Marked memory at $B79BA208 invalid Wrong signature $20D8 instead of 8E1C71B6 It means that you probably have a buffer overrun somewhere.

[fpc-pascal] mysterious crashing, maybe related to setlength

2009-09-06 Thread David Emerson
My program is crashing, and I just can't figure out why. Heaptrc has given me this rather cryptic info: Marked memory at $B79BA208 invalid Wrong signature $20D8 instead of 8E1C71B6 Using lazurus's step-into functionality, I've it down to the line where it's crashing -- seems to be crashing