Vidya,
Just some thoughts:
Make sure the directory you expect to get files from exists before you start the thread.
Have you tried to test without the parse/delete procs? If you do not get the error with no procs, then there is a problem with the procs. If you still get the error, then there is something wrong with the configuration of the protocol or with the access to the directory.
Jim Kosloskey
email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.