Page 1 of 1

[serious]List action affecting other list

Posted: Oct 22nd, '17, 16:19
by SimpleSi
I'm writing a program to read GIFs and using lists extensively to store the image data and the output image pixels and coming across some pecularities

Basically been building the program up - all working (or at least , all mistakes due to me)

Then I noticed one of my lists going a bit off-piste and eventually traced it to it being affected by changing the contents of a different list!

I've managed to change my code around to avoid the issue occurring but I've not come up with a simple case to show it

Just reporting it in, in case its a new phenomenon or one that's been seen before

Re: List action affecting other list

Posted: Oct 24th, '17, 11:12
by SimpleSi
This is the simplest code I can come up with that shows the bug

Summary
codeTable list is being changed when a different variable (newCode list) is being changed

Note - there are many workarounds for the issue but I don't think the bug should arise in the 1st place

Re: [serious]List action affecting other list

Posted: Nov 7th, '17, 12:37
by JohnM
See the thread "Two lists sharing data values" viewtopic.php?f=12&t=363&sid=afd241ed41 ... 60163d7ad1