Hey, im allready getting bit fustrated with this. Been trying to find solution for few hours allready.

So, im making proxy scraper and beacause adding proxies directly to datagridview was causing program to run slow, somebody said I should use database for it.

As I said on thread title, this is using ThreadPool and its giving me this error.

Code:
DataTable internal index is corrupted: 5
So, this is my code that should add proxy:

Code:
                Dim proxyregex As New Regex("[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}:[0-9]{1,4}")
                Dim proxies As MatchCollection = proxyregex.Matches(html)
                Dim pcount As Integer = 0

                For Each m As Match In proxies
                    Dim splitted() As String = m.Value.Split(":"c)
                    If splitted.Length > 1 Then
                        Dim newProxyRow As DataRow = ProxiesDBDataSet.Tables(0).NewRow()
                        newProxyRow(0) = tcount.ToString
                        newProxyRow(1) = splitted(0).ToString
                        newProxyRow(2) = splitted(1).ToString
                        ProxiesDBDataSet.Tables(0).Rows.Add(newProxyRow)
                        tcount += 1
                        pcount += 1
                    End If
                Next
Any help?