I've got a question concering how to pass instances of a class through nodes/queues.

My question deals with arrays. When I push an instance of class on to my queue and then proceed to pop that same object off of my queue and call the function to return this instance of classes array of values, I can index the first value (ie array[0]) and recieve the first value fine. When I try to index any other value (array[1] for instance) I get these funny numbers like -10958358 .

Now I did not instatiate this classes array like this, why does this happen?

If source code is needed, I can post, but it is quite lengthy.