By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,573 Members | 1,760 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,573 IT Pros & Developers. It's quick & easy.

what to do, what to do

P: n/a
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
Feb 8 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
rodchar wrote:
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
Feb 8 '06 #2

P: n/a
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.
--
Al Reid

"rodchar" <ro*****@discussions.microsoft.com> wrote in message news:50**********************************@microsof t.com...
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

Feb 8 '06 #3

P: n/a
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

"rodchar" wrote:
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

Feb 8 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.