I have something that I have never seen before in a MS development product.
I have a pretty simple call to a network directory that looks something like
this ...
Dim dirFolder As System.IO.DirectoryInfo
dirFolder = New System.IO.DirectoryInfo(sFilePath)
Dim filFiles() As System.IO.FileInfo
filFiles = dirFolder.GetFiles("*.xml")
filFiles should contain all XML files in the sFilePath directory. The
problem that I am having is that code execution simply stops on the last
line, even when running in debug. Period. I have tried surrounding this with
a Try Catch Finally block ... no exceptions are captured. Code execution
simply stops. It won't even advance to the next line of code. Has anyone
ever seen anything like this? Background: This is a windows service
application. I am simply trying to parse through all XML files in a
specified directory. Am I doing something wrong that I am not aware of?
Above all of that, why does the code just stop? I haven't even seen this
kind of behavior in VB6. I have to admit, I am a little uncomfortable with
just halting execution.
Thanks.
Adrian
Programmer/Analyst