Hello again,
Before I start just want to say, this forum has been really halpful so far, thanks guys!
So what's wrong now? My ArrayList wont play with me anymore.
For this code assume the naughty ArrayList is "GlobalDataStore.FaceList" which is an ArrayList of type "face". What's in face? Nothing much, just a
string and 4 int variables (name, x, y, width, height).
"DetectedFace" is an object of type "face" which is just used temporarily move stuff over to the ArrayList.
Problem with all this is that while i'm inside the for loop it seems to be adding everything to the ArraryList correctly. I can read the individual values from different positions in the array, it's all correct.
As soon as I get out of that for loop however, all the values in the arraylist are the same... that is every position in the array is the same object.
I reckon I'm reading from the arraylist incorrectly, I'm not sure what else could be wrong.