Array index out of bounds error, VB.net - Solved - TechRepublic
Question
August 8, 2012 at 03:00 PM
slayer_

Array index out of bounds error, VB.net – Solved

by slayer_ . Updated 13 years, 10 months ago

The trick is, its happening in a for each loop, so how is this possible?

Its a List(of t) type. Count shows 678 elements, however, if you try and access 677 it throws array index out of bounds. If you try to for each through it, on the last element it throws the same error.

What am I doing wrong?

This discussion is locked

All Comments