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 - ClientBase.Close is blocking

 
 
Old 09-29-2006   #1 (permalink)
Chad Z. Hower


 
 

ClientBase.Close is blocking

After I solved my OneWay problem I hit another. My client basically
goes like this:

Create Client
Call a oneway method
Client.Close();

The oneway now returns fine - but the close blocks until the process in
the oneway call on the server returns back. This could be by design,
and if so thats fine.

1) I thought about removing close - but the problem is there are many
servers from this object and I have no idea when I could close it, some
processes may run a long time even after the object client is disposed
of.

2) I've changed the server process to use a threadpool call to do its
ow oneway of sorts on the server. This seems to work fine.

Any other suggestions that I should consider?

--
"Programming is an art form that fights back"
http://www.KudzuWorld.com/
Need a professoinal technical speaker at your event? See www.woo-hoo.net

My System SpecsSystem Spec
Old 10-01-2006   #2 (permalink)
Arkady Frenkel


 
 

Re: ClientBase.Close is blocking

Chad!
Just a question/hint did you close Host before Client.Close() ?
Arkady

"Chad Z. Hower" <chad-ng@hower.org> wrote in message
news:uxkLPG84GHA.2596@TK2MSFTNGP06.phx.gbl...
> After I solved my OneWay problem I hit another. My client basically
> goes like this:
>
> Create Client
> Call a oneway method
> Client.Close();
>
> The oneway now returns fine - but the close blocks until the process in
> the oneway call on the server returns back. This could be by design,
> and if so thats fine.
>
> 1) I thought about removing close - but the problem is there are many
> servers from this object and I have no idea when I could close it, some
> processes may run a long time even after the object client is disposed
> of.
>
> 2) I've changed the server process to use a threadpool call to do its
> ow oneway of sorts on the server. This seems to work fine.
>
> Any other suggestions that I should consider?
>
> --
> "Programming is an art form that fights back"
> http://www.KudzuWorld.com/
> Need a professoinal technical speaker at your event? See www.woo-hoo.net



My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Have to press 'Close' or 'X' twice to close Windows Explorer windo Vista General
cannot close windows media player when i click the 'close' button Vista music pictures video
close with the X means close, not minimze to the system tray Live Mail
Close Tabs Closes Everything! I don't want to Close Everything! Vista mail
Close this program or search for the right topic and close this pr Vista security


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