Hi Tobias and everyone,
Many thanks for your comments. It certainly looks like I'm accessing some
memory that's not allowed.
The version of C68 I'm using is 424, which I believe is the latest. The
program is the Travelling Salesman Program, which I wrote first in SBASIC, and
this runs faultl
Hi Derek,
yes, sure do.
Tobias
> Am 03.06.2016 um 23:45 schrieb 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
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 somewhere else in your code.
>
> Ca
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.
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 (i
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 ag
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
apparen
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 up