Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Indigo

ClientBase.Close is blocking

Update your Vista Drivers Update Your Drivers Now!!
 
 
Thread Tools Display Modes
Old 09-29-2006   #1 (permalink)
Chad Z. Hower
Guest


 

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
Guest


 

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
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
close with the X means close, not minimze to the system tray Destin_FL Live Mail 3 07-27-2008 10:03 AM
Close Tabs Closes Everything! I don't want to Close Everything! Robbia Vista mail 1 04-07-2008 11:42 AM
cannot close windows media player when i click the 'close' button yulung Vista music pictures video 2 12-24-2007 04:37 PM
Close this program or search for the right topic and close this pr Allan Vista security 0 07-18-2007 07:28 AM
UAC Blocking Techno-Crat Vista General 4 09-13-2006 10:58 AM


Vistax64.com 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 2005-2008

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 47 48 49 50 51