Home All Groups Group Topic Archive Search About

what to do, what to do

Author
8 Feb 2006 6:24 AM
rodchar
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

Author
8 Feb 2006 6:50 AM
I Don't Like Spam
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
Author
8 Feb 2006 12:35 PM
Al Reid
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

Show quoteHide quote
"rodchar" <rodc***@discussions.microsoft.com> wrote in message news:500C60CA-9300-484F-80BD-BAE5F5626A37@microsoft.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
Author
8 Feb 2006 1:55 PM
rodchar
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

Show quoteHide quote
"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