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

Object Timeouts

After an object is declared, how long will that object be available
until it time's out?

Mar 22 '07 #1
5 1032
<ro*******@hotmail.comwrote in message
news:11**********************@o5g2000hsb.googlegro ups.com...
After an object is declared, how long will that object be available
until it time's out?
What "object" are you talking about exactly...?
Mar 22 '07 #2
After an object is declared, how long will that object be available
until it time's out?
It is available until all references on it are released (at a basic level).
Mar 22 '07 #3
Not sure what you meant ? Generally speaking an object doesn't timeout.

An ASP.NET session last 20 minutes by default if this is what you meant.
What is the particular problem you have ?

<ro*******@hotmail.coma écrit dans le message de news:
11**********************@o5g2000hsb.googlegroups.c om...
After an object is declared, how long will that object be available
until it time's out?

Mar 22 '07 #4
objects are available as long as there is a reference (or the
application exists). asp.net pages are class instances that are create
at start of request, and released at end of request.
-- bruce (sqlwork.com)

ro*******@hotmail.com wrote:
After an object is declared, how long will that object be available
until it time's out?
Mar 22 '07 #5
Generally objects exist only while they are in scope. After that you can no
longer rely on it being around since the garbage collector will eventually
come around and clean it up (whenever it gets around to it.)
Generally an object created in ASP.NET only lives for milliseconds while the
related page is being rendered on the server. If you need an object to live
a long time then you might consider creating a windows service with which
ASP.NET can interact.
Here's more info on windows services:
http://msdn2.microsoft.com/en-us/lib...50(VS.71).aspx

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
<ro*******@hotmail.comwrote in message
news:11**********************@o5g2000hsb.googlegro ups.com...
After an object is declared, how long will that object be available
until it time's out?
Mar 22 '07 #6

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

Similar topics

1
by: Christian Luszick | last post by:
hi, I am using output buffering with ob_start and a callback function, which replaces variables like "%var%" with the equivilants taken out of a mysql database. This works well! But I get...
2
by: p2esp | last post by:
Hello, I'm using the xmlrpclib module to contact an XMLRPC server that takes a long time to send results back. My client timeouts. The question is whether there is a way to have an xmlrpclib...
3
by: Fazer | last post by:
Hello, I was wondering what's the best way of setting timeouts when working with urllib2. Thanks,
4
by: Laphan | last post by:
Hi Guys I've been using text files for Tab-Delimited/ADO/ASP sites so that users can update and display their products lists through my system with relative ease. Only problem is that for the...
5
by: Jim in Arizona | last post by:
I'm doing a query on a webproxy log, which is a pretty large table. I'm only doing a query on a single days worth, but could be upwards of 250000 records. Originally I got a timeout error saying to...
5
by: wamatt | last post by:
Subject: SQL server job timeouts? We have a job that uses WinHTTP inside a stored procedure. We have another SP wrapper that runs this for a couple hundred records. When we add this as a job...
0
by: Jason | last post by:
What is the best way to set these timeouts? Should both be the same and what will happen if they are different? Thanks Jason
2
by: mircu | last post by:
Hi, I need a quick solution to make my application behave correctly when one of these timeouts occurs. I have some logic in session_start but when the authentication cookie timeouts the user is...
2
by: Fraijo | last post by:
how can i disable session timeouts without affecting any program codings?
10
by: Zytan | last post by:
I have a TcpClient. I set the read/write timeouts at 1 minute (in milliseconds). I get a NetworkStream from it and confirm the timeouts still exist. I do a NetworkStream.Write() and then a...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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,...
1
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
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.