473,569 Members | 2,782 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Object Timeouts

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

Mar 22 '07 #1
5 1038
<ro*******@hotm ail.comwrote in message
news:11******** **************@ o5g2000hsb.goog legroups.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*******@hotm ail.coma écrit dans le message de news:
11************* *********@o5g20 00...legro ups.com...
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*******@hotma il.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*******@hotm ail.comwrote in message
news:11******** **************@ o5g2000hsb.goog legroups.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
3827
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 sometimes php timeouts (max execution time (30s) exceeded ...). The Server should be really fast enough (dual PIII, >1 GB RAM) and runs with PHP 4.1.2 and...
2
3284
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 client that never timeouts. I have been searching for some code examples on how to do that, but I could not find any in the xmlrpclib
3
1919
by: Fazer | last post by:
Hello, I was wondering what's the best way of setting timeouts when working with urllib2. Thanks,
4
1766
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 last few months or so, this system has been generating loads of timeouts. ISP has said that I should be looking to upgrade my system, as it is the...
5
1903
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 increase the time using Server.ScriptTimeout so I put Server.ScriptTimeout = "900" at the top of my script. This didn't seem to help. Now I got...
5
8818
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 using SQLAgent it times out half way. Running it from SQL Query analyser and it completes to the end. Anyway to set the timeouts for jobs?
0
926
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
1652
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 redirected to login page and after successful login the session is not started. I'd like to have one timeout and when it occurs the user must login...
2
363
by: Fraijo | last post by:
how can i disable session timeouts without affecting any program codings?
10
6137
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 NetworkStream.Read(). Sometimes it sits and waits -- on the Write() or the Read() -- for 15 minutes before I get fed up and close the app..... I am...
0
7605
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...
0
7917
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. ...
0
7962
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...
0
6277
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...
1
5501
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5217
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3651
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...
1
2105
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
1
1207
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.