473,783 Members | 2,475 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Setting object = nothing after Response.end

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

set objConn = nothing
set objAnyObject = nothing

?
Sep 12 '05 #1
6 1943
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

"dotnettest er" <do**********@d iscussions.micr osoft.com> a écrit dans le
message de news:D4******** *************** ***********@mic rosoft.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.Redire ct 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.Redire ct 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.Redire ct 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**********@s pammotel.com> a écrit dans le message de
news:et******** ******@TK2MSFTN GP15.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.Redire ct 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.Redire ct 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.Redire ct 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
11589
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 a funciton inVB DLL Function BuildSqlWhereFromHTML(ByRef AspReq As ASPTypeLibrary.Request, _ ByRef AspSes As ASPTypeLibrary.Session) As String
18
18419
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 a remote update of tables and fields and can't find enough information on these things. Also, how do you index a field in code?
11
1721
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"} Context.User = New System.Security.Principal.GenericPrincipal(User.Identity, arrRoles) Case 1
8
2266
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 happens. dim filt as string ... build filter string... UserControl.ReportFilter = filt
8
2477
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!! This is the error: biopsy.searchsubject.btnSubject_Click(Object Sender, EventArgs e) in C:\INetPub\WWWRoot\biopsy\searchsubject.aspx.vb:198 System.Web.UI.WebControls.Button.OnClick(EventArgs e)
3
15876
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 (users on the PC?) the Authentication is occuring. Is there a way for me to receive and control the Authentication attempt myself? This is probably obvious but I've found nothing describing it.
0
1606
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 in advance When I run the pgm , I get the error: Can't parse login information. Object Reference not set to an instance of an object. I have added the Try-catch in all my functions. In ParseLoginResponse function, it catches the above...
0
1109
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 times for each page load because of the way I structure my pages (sitehead.asp,sitefoot.asp,sidemain.asp, etc). Thus, i'm trying to compile them as a COM/DLL object and simply create an instance of the object in the global.asa and reference the...
2
9176
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 file i have created with store procedure in Sql Server 2005. The code is as below:::: _______________________________________________________ 1. SimplePreviewReport.asp <%@ LANGUAGE="VBSCRIPT" %>
0
9643
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10315
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9946
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8968
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5379
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4044
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2877
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.