Hello,
I have two programs that to the best of my knowledge use the same data structures and contain the same statements.
One program works and the other fails with the error in the title. No doubt there is a reason, but at this stage it is not clear to me.
Please refer to the two attachments:
- Example_Data_Structure
- Linked_List_Example
Example_Data_Structure is a short program that builds and executes as I would expect.
Example_Data_Structure contains an extract of code from Linked_List_Example.
For some reason the code works fine in isolation, but not when combined with the other statements.
It's a mystery to me.
Linked_List_Example, contains a lot more code (sorry), but also contains the same code as in Example_Data_Structure. I've had to include the whole program because obviously there is something in it which causes the following statement to fail.
Code:
record->i_value = 100;
For reason;
Code:
162|error: assignment of member ‘i_value’ in read-only object|
For some reason I can't upload the other program. No errors but it doesn't appear in the Attachment Manager.
Also the Attachment Manager states that uploaded programs are supposedly deleted after 1 hour; but my upload from yesterday is still there?