Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting the creation of an object
Message
From
24/02/2004 15:38:25
 
 
To
24/02/2004 15:34:32
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00880446
Message ID:
00880449
Views:
25
>I have the following code:
>
>      ' Get the SoapContext for the response message
>      Dim loContext As SoapContext
>      loContext = HttpSoapContext.ResponseContext
>
>
>This doesn't generate any error. However, below in the code, as soon as I make reference to loContext, I get an error that the object reference is not set. How can I detect if the 2nd line here is a success? Or, can someone point me to where the problem is?


Can't answer why it does not work (I'm sure someone will chime in). As for the first question, how to detect, you could use a Try..Catch block around it.


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform