Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Error with displaying array in the "Watches" window

<< < (2/3) > >>

mandrav:
I haven't worked on it yet.
It's an optimization bug, in that it doesn't display consecutive same values. So if you have an int[5] and all elements are initialized with the same value, you will only see the first value. The rest are skipped because of the  tree updating optimization.
I know this is not desirable but I 'll have to change the way the watches tree is constructed for this to be fixed. And so, it's taking some time...

dk:

--- Quote from: mandrav on September 06, 2006, 05:28:42 pm ---It's an optimization bug, in that it doesn't display consecutive same values. So if you have an int[5] and all elements are initialized with the same value

--- End quote ---
No, all elements have different values in my array, and they are all displayed, but in the wrong order!

mandrav:
I tried to explain the root of the problem and gave an example...

mandrav:
This and all related bugs are now fixed.

dk:
Thank you, it's really works correct!

Another minor bug (may be, new) with "Watches".

Start debugging that simple program ang goto to the last line. We will get:



Now press F7 to go to the next line. Look at the "Watches window":



We see two artifact strings in the "Watсhes" with old values of A array.

Should I post bug to BerliOS?

I am using svn revision 3025 of C::B and Linux.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version