Re: [Ql-Users] C68 arrays

2016-06-03 Thread Derek
Hi Tobias, Do you use MAKE to compile the C68 programs Regards, DerekOn 3 Jun 2016 11:48, Tobias Fröschle wrote: > > Michael, > > I am using C68 quite a lot on the QL and have not experienced anything like > that. > > I would rather suppose the problem is

Re: [Ql-Users] C68 arrays

2016-06-03 Thread Norman Dunbar
Alternatively, are you running through an array from 0 to 100 but comparing with some other element, say in a bubble sort, where that other element is some positive offset from the current index in the loop? Been there, done that! Cheers, Norm. -- Sent from my Android device with K-9 Mail.

Re: [Ql-Users] C68 arrays

2016-06-03 Thread Norman Dunbar
Hi Michael, Sounds like an off by one error. Do you use for loops? While loops. Do loops? Etc to process elements in the array? If so, do you have a # define to limit the array index to 100 rather than using some embedded magic number? #define LIMIT 101 ... int index; int array[LIMIT]; for

Re: [Ql-Users] C68 arrays

2016-06-03 Thread Marcel Kilgus
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

Re: [Ql-Users] C68 arrays

2016-06-03 Thread Tobias Fröschle
Michael, I am using C68 quite a lot on the QL and have not experienced anything like that. I would rather suppose the problem is somewhere else in your code. Can you specify the exact version of C68 you are using? Are you willing to show a minimum version of your code that exposes this

[Ql-Users] C68 arrays

2016-06-03 Thread Michael Bulford
Hi all, 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