Michael Bulford wrote: > I am developing a program in Cee which uses several arrays, and which is > crashing. > Eg. .. int array[101]; and using elements from 0 up to 100. > I have discovered that by declaring the array with one extra element cures > the problem, > Eg. .. int array[102]; and again using only elements up to 100. > This seems to happen with both global arrays, or arrays created from malloc, > although the crash is different in either case. > I was wondering if anyone has experienced this as well.
I'm with Tobias here. That there is a problem with statically allocated arrays is already highly unlikely as this would break basically every program in existence. That there is both a problem with static and malloc() arrays is basically impossible. Your code is certainly accessing some memory past the allocated array at some point. Marcel _______________________________________________ QL-Users Mailing List
