S
Starbuck
Hi
When the routine below is run it gets to the line - Dim fileEntries As
String() = Directory.GetFiles(tString) and then freezes, there is no errors
etc, the program just stops responding. The path is correct and does exist
and there is a test file in there
Any thoughts please?
Private Sub InboxTimer_Tick(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles InboxTimer.Tick
Try
Dim tString As String = gc.Inbox & "\"
Dim fileName As String = ""
InboxTimer.Enabled = False
Dim fileEntries As String() = Directory.GetFiles(tString)
For Each fileName In fileEntries
OpenInfile(fileName)
cf.Kill(fileName)
Next fileName
InboxTimer.Enabled = True
Catch ex As Exception
InboxTimer.Enabled = True
ErrorBox(ex.Message)
End Try
End Sub
When the routine below is run it gets to the line - Dim fileEntries As
String() = Directory.GetFiles(tString) and then freezes, there is no errors
etc, the program just stops responding. The path is correct and does exist
and there is a test file in there
Any thoughts please?
Private Sub InboxTimer_Tick(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles InboxTimer.Tick
Try
Dim tString As String = gc.Inbox & "\"
Dim fileName As String = ""
InboxTimer.Enabled = False
Dim fileEntries As String() = Directory.GetFiles(tString)
For Each fileName In fileEntries
OpenInfile(fileName)
cf.Kill(fileName)
Next fileName
InboxTimer.Enabled = True
Catch ex As Exception
InboxTimer.Enabled = True
ErrorBox(ex.Message)
End Try
End Sub