468,268 Members | 1,720 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,268 developers. It's quick & easy.

Setting object = nothing after Response.end

Woud this work?
.....
Response.end

set objConn = nothing
set objAnyObject = nothing

?
Sep 12 '05 #1
6 1708
dotnettester wrote:
Woud this work?
....
Response.end

set objConn = nothing
set objAnyObject = nothing

?


No. "End" does what it says it does ...

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Sep 12 '05 #2
dotnettester wrote:
Woud this work?
....
Response.end

set objConn = nothing
set objAnyObject = nothing


RTM.
http://msdn.microsoft.com/library/en...c02bec44cf.asp

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Sep 12 '05 #3
Try :

Response.Write "Hello"
Response.End
Response.Write "World !"

--
Patrice

"dotnettester" <do**********@discussions.microsoft.com> a écrit dans le
message de news:D4**********************************@microsof t.com...
Woud this work?
....
Response.end

set objConn = nothing
set objAnyObject = nothing

?

Sep 13 '05 #4
Patrice wrote:
Try :

Response.Write "Hello"
Response.End
Response.Write "World !"


To be fair to the OP, it seems reasonable to assume that once you call the
End method of the Response object, the Write method of the same should no
longer be available. So, perhaps this is not the best example with which to
test this principle.

It seems less reasonable to assume that the rest of the process ends also,
by my reckoning. Is it obvious, for example, whether the Nothing assignment
happens here?

Response.Redirect myURL
Set cn = Nothing

The MS documentation says nothing about the process scope -- it only
describes what is sent to the browser:
http://msdn.microsoft.com/library/en...7f38f37ab3.asp

Of course, if you can get to the Response.Redirect documentation, you can
get to that of Response.End, so this point is somewhat moot. But even to
someone with the intuitive understanding that Response.Redirect sends an
HTTP 302 header, it is not patently clear that the *process* stops when the
Response Object stops doing stuff.
--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Sep 13 '05 #5
Good point then use whatever would have a "visible" effect (writing in a
trace file ?).

My original unexplicit point was that it seems the kind of question that is
quite easily answered by yourself - apparently not easily enough for me
though, shooting myself in the foot ;-)
--
Patrice

"Dave Anderson" <GT**********@spammotel.com> a écrit dans le message de
news:et**************@TK2MSFTNGP15.phx.gbl...
Patrice wrote:
Try :

Response.Write "Hello"
Response.End
Response.Write "World !"
To be fair to the OP, it seems reasonable to assume that once you call the
End method of the Response object, the Write method of the same should no
longer be available. So, perhaps this is not the best example with which

to test this principle.

It seems less reasonable to assume that the rest of the process ends also,
by my reckoning. Is it obvious, for example, whether the Nothing assignment happens here?

Response.Redirect myURL
Set cn = Nothing

The MS documentation says nothing about the process scope -- it only
describes what is sent to the browser:
http://msdn.microsoft.com/library/en...7f38f37ab3.asp
Of course, if you can get to the Response.Redirect documentation, you can
get to that of Response.End, so this point is somewhat moot. But even to
someone with the intuitive understanding that Response.Redirect sends an
HTTP 302 header, it is not patently clear that the *process* stops when the Response Object stops doing stuff.
--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use of this email address implies consent to these terms. Please do not contact me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.

Sep 13 '05 #6
Patrice wrote:
Good point then use whatever would have a "visible" effect
(writing in a trace file ?).


That's the kind of thing I was thinking.

Of course, it would be an academic exercise, having resolved the question by
reading the documentation.

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Sep 13 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by VB Programmer | last post: by
8 posts views Thread by David Lozzi | last post: by
reply views Thread by XML newbie: Urgent pls help! | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by kermitthefrogpy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.