FileSystemWatcher & 3rd COM

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am a bit confused. I am using a 3rd party COM object
that adds records to a SQL DB through OLE (that's what
they use). I can get this working perfectly in .NET.
Now, when I add the FileSystemWatcher to the code,
watching for new files. Upon a new file, read the file
and use that information with the COM object to insert
into the DB. When the FileSystemWatcher is involved,
there is some kind of error when trying to instantiate the
COM object, and completely kills the application. I have
the code within a Try Catch and still bombs without
reaching the Catch. Any ideas on this?? Feel free to ask
more specific questions if you have any!! Thanks
 
Back
Top