A
Adam
If I catch an exception in a static callback method like:
private static void ResponseCallback(IAsnycResult
asyncResult)
{
try { //code...code...code }
catch (WebException e)
{ //handle exception }
}
will that that WebException object remain for the life of
the process???
I have a windows service which makes WebRequests and uses
a callback to handle asynchronous requests, but if
there's an exception raised, I want to be able to
continue using this class later on. I've had a hard time
debugging it, but it seems like once there's an exception
raised, I keep catching an exception, even when I'm
pretty sure the request should succeed.
Does the WebException remain in memory the same as other
static members??? If so how, should this kind of
situation be coded?
Thanks
private static void ResponseCallback(IAsnycResult
asyncResult)
{
try { //code...code...code }
catch (WebException e)
{ //handle exception }
}
will that that WebException object remain for the life of
the process???
I have a windows service which makes WebRequests and uses
a callback to handle asynchronous requests, but if
there's an exception raised, I want to be able to
continue using this class later on. I've had a hard time
debugging it, but it seems like once there's an exception
raised, I keep catching an exception, even when I'm
pretty sure the request should succeed.
Does the WebException remain in memory the same as other
static members??? If so how, should this kind of
situation be coded?
Thanks