Wrong insanely long value in array

 

I'm writing a footprint indicator and often I get some very long values in the last few elements which shouldn't be there. In my humble opinion those are memory address.

Sorry for not posting any code but I'm not doing anything fancy, just using ArrayResizeZeroMemory and ArraySize

Anybody has any idea why this may be happening, please?

Check the pictures, please.

Thank you.

Files:
 
robdabank: Anybody has any idea why this may be happening,

It is almost always your code.
      How To Ask Questions The Smart Way. (2004)
          Don't rush to claim that you have found a bug.
      Questions Not To Ask
          My program doesn't work. I think system facility X is broken.

 
Put a condition to write an empty string if the value is EMPTY_VALUE.
 
Fabio Cavalloni #:
Put a condition to write an empty string if the value is EMPTY_VALUE.
This. Look up EMPTY_VALUE