Pages

bug avec parallel.for sujet

jeudi 27 mars 2014




Bonjour

J'ai écrit ce bout de code mais j'obtiens une exception index is outside the bound of the array


Code:


1
2
3
4
5
6
  Parallel.For(0, 1000, Sub(i)
For j As Int64 = 0 To i
list.Add(i + j) 'l'erreur pointe sur cette ligne
Next

End Sub)


merci




Aucun commentaire:

Enregistrer un commentaire