all groups > dotnet remoting > july 2006 >
You're in the

dotnet remoting

group:

Exceptions break the application even within try...catch... Why?


Exceptions break the application even within try...catch... Why? ThunderMusic
7/27/2006 4:14:09 PM
dotnet remoting:
Hi,
I use remoting in a Windows app... this remoting call a ServerA and using
ServerA get an object (marshaled) from ServerB... if I call a method on the
object gotten from ServerB and this ServerB has shut down it's service, I
get an exception and this exception stop the application event if it's
inside a try-catch structure... I mean, it does exactly the same as if it
was not in a try-catch structure. Is there a reason it's behaving this way?

I could send a code snippet, but it would not be useful... I get the ServerA
object, I get the ServerB object by calling a method on ServerA's object, I
open a try structure (try { ), I call a method on ServerB's object... if
the ServerB is running, everything is fine, if ServerB is not running, the
exception is thrown exactly the same way as if it were not in a try-catch
structure...

Why? and Is there a way around it?

Thanks

ThunderMusic

Re: Exceptions break the application even within try...catch... Why? Michel Posseth [MCP]
7/28/2006 12:00:00 AM
I solved this with a messaging structure ,,,,, if the server is shutting
down it will broadcast a message to the clients and vice versa .


maybe this is an idea for you to ??


regards

Michel Posseth



"ThunderMusic" <NoSpAmdanlatathotmaildotcom@NoSpAm.com> schreef in bericht
news:um6qYkbsGHA.452@TK2MSFTNGP05.phx.gbl...
[quoted text, click to view]

AddThis Social Bookmark Button