473,408 Members | 2,477 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Setting object = nothing after Response.end

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

set objConn = nothing
set objAnyObject = nothing

?
Sep 12 '05 #1
6 1918
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Gerhard Pretorius | last post by:
ON Win 2003 IIS6, Since yesterday, (12 Aug 2003) for some strange reason, (after installing WindowsServer2003-KB823980-x86-ENU.exe) I cannot pass the Request object to to VB COM DLL. I have...
18
by: Dixie | last post by:
Can I set the Format property in a date/time field in code? Can I set the Input Mask in a date/time field in code? Can I set the Format of a Yes/No field to Checkbox in code? I am working on...
11
by: VB Programmer | last post by:
PLEASE HELP.... I'm having trouble. In my login form after I've verified the username/password are valid I do this: Select Case iMyPrivilege Case 0 Dim arrRoles() As String = {"guest"}...
8
by: David Lozzi | last post by:
Howdy, I have a user control that is a report to display data. On the page the control is inserted in, I have filter options to filter the report. When I try to do something like this, nothing...
8
by: ST | last post by:
Hello everyone, Can anyone help me with this error above when I debug my web app project in vstudio.net?? I can't figure it out! It was working fine for months, and now all of a sudden it's not!!...
3
by: Martin | last post by:
How does one set up basic authentication on an HttpListener? I know I need to set the HttpListener.AuthenticationSchemes to AuthenticationSchemes.Basic but then I'm unsure how and against what...
0
by: XML newbie: Urgent pls help! | last post by:
I am using VB.Net. My program is to connect to a remote IPAddress. Once, it verifies the login information it should display the SessionID and enable some button . I appreciate your help and thanku...
0
markrawlingson
by: markrawlingson | last post by:
Hello, So I've got a list of functions written in ASP Classic which I include into every page within my application(s). This file is getting quite big and in most scenarios needs to be called 4-5...
2
by: Thefire | last post by:
Hello All i am using Bisness object Crystal Report XI version and installed it on my server. I have checked to installed as server. I am using the following code to connect and display the Report...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.