473,395 Members | 1,516 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,395 software developers and data experts.

Can I safely call Response.End in a server-side JScript constructor?

Hi.

I've got the following ASP server-side script:

function MyObject()
{
if ( myCondition == true ) {
Response.End();
}
...
}

Will it result in resource leakage or will the being-constructed instance be
released properly?

Thanks in advance,
Vince C.
Jul 19 '05 #1
2 2455
Hi Vince,

"Response.End" will send all currently buffered output to the client, stops
execution of the page. If there some code which take resposiblility to
release resource after "Response.End", these code may not be executed.
Therefore, we need to use this carefully, to ensure resource leak.

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Jul 19 '05 #2
"MSFT" <lu******@online.microsoft.com> a écrit dans le message de
news:Xd**************@cpmsftngxa06.phx.gbl...
Hi Vince,

"Response.End" will send all currently buffered output to the client, stops
execution of the page. If there some code which take resposiblility to
release resource after "Response.End", these code may not be executed.
Therefore, we need to use this carefully, to ensure resource leak.


Thanks, Luke. So the response is "no". I'll take it into account.

Vince C.
Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jakub Moscicki | last post by:
Hello, A small problem: I get a signal during a system call (from xmlrpclib -> httplib) and an exception "IOError: Interrupted system call" is raised (this is system dependant, on other machine...
0
by: Lori Reddy | last post by:
Here are the variables left by the time we found a workaround for the problem: Across subnet. Across firewall. DCOM call from a DLL used in an ASP page. Two tests from a web server ("a") to...
3
by: Wayne... | last post by:
I'm trying to make a sort of source code libary for some customers of commonly used code to save them a bit of time the problem I have is that although I can get the asp code into a field of an...
7
by: Stefano | last post by:
Hi all, how can I safely retrieve computer name through asp.net page's code? I'm trying with "System.Environment.MachineName", but some hosting provider doesn't allow the use of Environment. ...
10
by: bienwell | last post by:
Hi, I have a question about file included in ASP.NET. I have a file that includes all the Sub functions (e.g FileFunct.vb). One of the functions in this file is : Sub TestFunct(ByVal...
6
by: enjoying the view | last post by:
I am working on a school project, trying to build a simple RPC stub generator. The idea is that the generator takes a normal python file with functions defined in it and produces a client and...
3
by: Jamie Risk | last post by:
I'm attempting to improve some serially executing code (that uses the SerialPort class) bogging Windows down when it runs. To do the 'antibogging' I'm following the example from MSDN...
5
by: Mike McIntyre | last post by:
What event can be used to call a JavaScript function when the page loads AND when it receives a response from the web server? Thanks, -- Mike Mike McIntyre http://www.getdotnetcode.com
0
by: Reid Priedhorsky | last post by:
Dear all, I have a TCP server written using SocketServer with ForkingMixIn. Servicing connections is CPU-bound and can take several seconds. I now need a way to safely tell the master process...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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,...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...

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.