Here is an example based on what you had provided. Assuming there are only two dummy value in the reloc array. But the loop is trying to loop 10 times (length of the array). The code will complaint because it try to retrieve the value from reloc[2], reloc[3], ...which is not available. Again that just my assumption based on what being presented here.
C# Online Compiler | .NET Fiddle[
^]