Hello Mitchell
The framework makes a distinction between threads that run in the
foreground and those in the background.
If a thread is marked as a background thread, the framework does not wait
for it to finish in the event that the AppDomain is shut down
so if your threads are foreground threads the AppDomain is shut down aftere
there completion
regards
Michel Posseth [MCP]
<mm*******@capstonetechnology.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
I have a service that executes a method in a dll. This method spawns
several threads.
When I stop the service I notice the process doesn't stop right away. I
assume the threads that some time to finish. What can I don the the
OnStop method to insure all threads are completed before stopping the
service?
Thanks for any help.