C
Chuck Hecht
When I create a file stream say
xmlpath = "\my documents\sbcdefs.xml"
Dim fs_xml_sbcdefs As New FileStream(xmlpath, FileMode.Open)
and pass it to a XMLreader like
Dim xr_xml_sbcdefs As New XmlTextReader(fs_xml_sbcdefs)
I then pass the Xmlreader to the readxml method of a dataset like
dsTraker.ReadXml(xr_xml_sbcdefs)
I then set the filestream and the xmlreader to nothing like
fs_xml_sbcdefs = Nothing
xr_xml_sbcdefs = Nothing
QUESTION
Does setting the filestream and xmlreader to nothing implictlity close the
thread that they are using?
xmlpath = "\my documents\sbcdefs.xml"
Dim fs_xml_sbcdefs As New FileStream(xmlpath, FileMode.Open)
and pass it to a XMLreader like
Dim xr_xml_sbcdefs As New XmlTextReader(fs_xml_sbcdefs)
I then pass the Xmlreader to the readxml method of a dataset like
dsTraker.ReadXml(xr_xml_sbcdefs)
I then set the filestream and the xmlreader to nothing like
fs_xml_sbcdefs = Nothing
xr_xml_sbcdefs = Nothing
QUESTION
Does setting the filestream and xmlreader to nothing implictlity close the
thread that they are using?