what to do, what to do

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

Guest

hey all,

i have a windows service that uses a FileSystemWatcher. When a file arrives
i need to do quite a few things to it. my question is should i put the rest
of the process in a separate vb program and just call that in the event. Or
just have the entire process inside the service?

thanks,
rodchar
 
rodchar said:
hey all,

i have a windows service that uses a FileSystemWatcher. When a file arrives
i need to do quite a few things to it. my question is should i put the rest
of the process in a separate vb program and just call that in the event. Or
just have the entire process inside the service?

thanks,
rodchar

you should spawn a thread to do the workload. Leave your service lean
and mean.

Chris
 
rodchar,

See the thread from yesterday, Subject "System.IO.FileSystemWatcher is missing alot of files."
I posted an example using the FileSystemWatcher along with a worker thread.
 
Just wondering...would the following also be examples of spawining a new
thread in addition to Al's example?

dim proc as new process

or

use vbscript's wscript.Run

Thanks,
rodchar
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top