Richard D. Jackson wrote:
What is interesting is that. Given
var buff : String (255);
I can stuff 30925 chars into it after that majic number I get a segfault. So what is happening here? If I suround a string with other vars they are not getting overwriten wich is a good thing but I still wonder why it did not segfault at 256.
That is just chance. Take the same program to another PC running the same OS (or compile for another OS) and you might well get the segfault in a different place.
I also don't think that you can rely on other variables not being overwritten. Something is being overwritten. Best regards, The Chief --------- Prof. Abimbola Olowofoyeku (The African Chief) Web: http://www.bigfoot.com/~african_chief/