Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Indigo

Vista - WCF service object still alive when host is closed

 
 
Old 04-22-2007   #1 (permalink)
Elvin


 
 

WCF service object still alive when host is closed

Hi,

In my WCF services i running a thread to do some task, however when i close
the host application, the host application still exists in task manager. How
to clean off all the service resources when close the host application??

Thanks!

My System SpecsSystem Spec
Old 04-23-2007   #2 (permalink)
Arkady Frenkel


 
 

Re: WCF service object still alive when host is closed

You have to set thread's background attribute to true before you start it
Arkady

"Elvin" <Elvin@discussions.microsoft.com> wrote in message
newsA107FE6-374C-409E-95A5-30F4FB8626ED@microsoft.com...
> Hi,
>
> In my WCF services i running a thread to do some task, however when i
> close
> the host application, the host application still exists in task manager.
> How
> to clean off all the service resources when close the host application??
>
> Thanks!



My System SpecsSystem Spec
Old 04-23-2007   #3 (permalink)
Elvin


 
 

Re: WCF service object still alive when host is closed

Thanks! is help!!!

"Arkady Frenkel" wrote:

> You have to set thread's background attribute to true before you start it
> Arkady
>
> "Elvin" <Elvin@discussions.microsoft.com> wrote in message
> newsA107FE6-374C-409E-95A5-30F4FB8626ED@microsoft.com...
> > Hi,
> >
> > In my WCF services i running a thread to do some task, however when i
> > close
> > the host application, the host application still exists in task manager.
> > How
> > to clean off all the service resources when close the host application??
> >
> > Thanks!

>
>
>

My System SpecsSystem Spec
Old 04-23-2007   #4 (permalink)
Arkady Frenkel


 
 

Re: WCF service object still alive when host is closed

No problems , be aware that this division ( forground and background
threads ) came to .Net from vista, so there even in native ( windows ) API
you have that too
Arkady


"Elvin" <Elvin@discussions.microsoft.com> wrote in message
news:66D57186-9227-4707-8E14-748481942078@microsoft.com...
> Thanks! is help!!!
>
> "Arkady Frenkel" wrote:
>
>> You have to set thread's background attribute to true before you start it
>> Arkady
>>
>> "Elvin" <Elvin@discussions.microsoft.com> wrote in message
>> newsA107FE6-374C-409E-95A5-30F4FB8626ED@microsoft.com...
>> > Hi,
>> >
>> > In my WCF services i running a thread to do some task, however when i
>> > close
>> > the host application, the host application still exists in task
>> > manager.
>> > How
>> > to clean off all the service resources when close the host
>> > application??
>> >
>> > Thanks!

>>
>>
>>



My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
host process for windows stopped working and was closed Vista General
WMI Provider Host stopped working and was closed Vista General
Wmi providor host has stopped working and was closed Vista General
Host Process for Windows Services stopped working and was closed Vista General
Host Process for Windows Services stopped working and was closed Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46