G
Guest
I am running into a problem with the below code while trying to
gather a listing of files on a server. When I run the code without
breakpoints, it only collects the first file and nothing else. When
I set a breakpoint at the Do statement, and step through the code,
variable 'mess' contains all the files in the directory.
Do While (True)
m_aBuffer.Clear(m_aBuffer, 0, m_aBuffer.Length)
bytes = cSocket.Receive(m_aBuffer, m_aBuffer.Length, 0)
m_sMes = ASCII.GetString(m_aBuffer, 0, bytes)
If (bytes < m_aBuffer.Length) Then
Exit Do
End If
Loop
mess = m_sMes.Split(seperator)
cSocket.Close()
Thanks for any help in advance,
JT Johnston
gather a listing of files on a server. When I run the code without
breakpoints, it only collects the first file and nothing else. When
I set a breakpoint at the Do statement, and step through the code,
variable 'mess' contains all the files in the directory.
Do While (True)
m_aBuffer.Clear(m_aBuffer, 0, m_aBuffer.Length)
bytes = cSocket.Receive(m_aBuffer, m_aBuffer.Length, 0)
m_sMes = ASCII.GetString(m_aBuffer, 0, bytes)
If (bytes < m_aBuffer.Length) Then
Exit Do
End If
Loop
mess = m_sMes.Split(seperator)
cSocket.Close()
Thanks for any help in advance,
JT Johnston