[serious]List action affecting other list

Report bugs. Post bug workarounds or fixes

Moderator: MSandro

Post Reply
SimpleSi
Posts: 330
Joined: Jul 2nd, '17, 13:47

[serious]List action affecting other list

Post by SimpleSi » Oct 22nd, '17, 16:19

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
Last edited by SimpleSi on Oct 24th, '17, 11:13, edited 1 time in total.

SimpleSi
Posts: 330
Joined: Jul 2nd, '17, 13:47

Re: List action affecting other list

Post by SimpleSi » Oct 24th, '17, 11:12

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
Attachments
2bug.gpp
(7.64 KiB) Downloaded 271 times

JohnM
Posts: 379
Joined: Sep 11th, '15, 14:42

Re: [serious]List action affecting other list

Post by JohnM » Nov 7th, '17, 12:37

See the thread "Two lists sharing data values" viewtopic.php?f=12&t=363&sid=afd241ed41 ... 60163d7ad1

Post Reply