I am reading an xml file and it is taking a very long time to parse.
It contains a number of fields, each one being an entry in a database.
I thought therefore to create a separate thread for each entry.
Dim xbn, xin as MSXML2.IXMLDOMNode
Dim xthread as Threading.Thread
Dim xread as new xmlThread
For each xin In xbn.childNodes
.xin = xin
xthread = New Threading.Thread(AddressOf .ReadXML)
Friend xin as MSXML2.IXMLDOMNode
Friend Shared Sub ReadXML()
Dim xan as MSXML2.IXMLDOMNode
For each xan in xin.ChildNodes
VS returns an error 'cannot refer to an instance member of a class from within a shared method' etc
How do I deal with this please?