G
Guest
I'm using List<> to store a class of positions.
Position are basically latitude and longitudes (doubles).
the line is something like
List<position> P = new List<position>();
Then I start adding to the List.
P.add(Positions);
After about 120 entry the List starts writing the enrty at 0 even thou the
list keeps growing. I watched it in the dbeugger overwrite all the values in
the List as it adds the new one.
I made a temp that hold just a double and that works correctly.
Any body having trouble with List of classes?
Position are basically latitude and longitudes (doubles).
the line is something like
List<position> P = new List<position>();
Then I start adding to the List.
P.add(Positions);
After about 120 entry the List starts writing the enrty at 0 even thou the
list keeps growing. I watched it in the dbeugger overwrite all the values in
the List as it adds the new one.
I made a temp that hold just a double and that works correctly.
Any body having trouble with List of classes?