Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Variables with random data in
#1
Not sure if it's a bug or design, but I seem to be finding random numbers in dimensioned arrays. I would have expected a DIM to set values to zero by default, I think?

Assuming that, and not looping through and setting them to zero is causing some very surprising values to pop up!
Reply
#2
britlion Wrote:Not sure if it's a bug or design, but I seem to be finding random numbers in dimensioned arrays. I would have expected a DIM to set values to zero by default, I think?

Assuming that, and not looping through and setting them to zero is causing some very surprising values to pop up!
They should be Zero. Can you post some (minimal) sample code?
Reply
#3
It could be me. I put in deliberate loops to write zero to the array, and I'm still seeing odd numbers.

Now I have to find out where's writing to that variable! (or prove there's an error somewhere else, like corrupted memory) I'll get back to you on it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)