473,466 Members | 1,658 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

TimeOut

Hi,

I need to implement a TimeOut function in an application. When the
aplication will be idle for one our, for example, i need to clese it.
Someone has any idea about this?

Thanks!

T+

Waldemar
Nov 20 '05 #1
11 1188
How about the windows scheduler or AT?
"Waldemar" <ro*****@unerj.br> wrote in message
news:ex*************@tk2msftngp13.phx.gbl...
Hi,

I need to implement a TimeOut function in an application. When the
aplication will be idle for one our, for example, i need to clese it.
Someone has any idea about this?

Thanks!

T+

Waldemar

Nov 20 '05 #2
You could set a timer which gets reset each time the application does
something, if it ever reaches the defined interval, then exit the
application.

OHM

solex wrote:
How about the windows scheduler or AT?
"Waldemar" <ro*****@unerj.br> wrote in message
news:ex*************@tk2msftngp13.phx.gbl...
Hi,

I need to implement a TimeOut function in an application. When the
aplication will be idle for one our, for example, i need to clese it.
Someone has any idea about this?

Thanks!

T+

Waldemar


Regards - OHM# OneHandedMan{at}BTInternet{dot}com
Nov 20 '05 #3
* "solex" <so***@nowhere.com> scripsit:
How about the windows scheduler or AT?


What's AT?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #4
Herfried,

AT is the command line utility for the windows scheduler.

Dan

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:ei**************@TK2MSFTNGP10.phx.gbl...
* "solex" <so***@nowhere.com> scripsit:
How about the windows scheduler or AT?


What's AT?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #5
Please explain to me how this would do what the OP wanted ?

OHM

solex wrote:
Herfried,

AT is the command line utility for the windows scheduler.

Dan

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:ei**************@TK2MSFTNGP10.phx.gbl...
* "solex" <so***@nowhere.com> scripsit:
How about the windows scheduler or AT?


What's AT?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>


Regards - OHM# OneHandedMan{at}BTInternet{dot}com
Nov 20 '05 #6
-----Original Message-----
You could set a timer which gets reset each time the application doessomething, if it ever reaches the defined interval, then exit theapplication.

OHM


Is there an easy way to reset the timer whenever the user
does something in the application? I have previously
placed a line of code in each button, menu item, form,
etc. :p But today my applications are too big to do this
(unless I had decided to inherit everything and put code
in the controls themselves).

I could envision setting up something that looks for any
application activity, but most of my applications do
things on their own even when there is no user there.

It would be great if there were an application level
event called 'OnUserInteraction' where you could put
something like this. Does anything like that exist?

Thank you,
Mark Lauser - Crimson Software
Nov 20 '05 #7
Although I havent done it myself, I beleive there is a way to set up a
global event handler. I dont have time to look into this now, but Im sure
one of the other guys has either done it or knows how to do it.

Regards - OHM
an*******@discussions.microsoft.com wrote:
-----Original Message-----
You could set a timer which gets reset each time the application does
something, if it ever reaches the defined interval, then exit the
application.

OHM


Is there an easy way to reset the timer whenever the user
does something in the application? I have previously
placed a line of code in each button, menu item, form,
etc. :p But today my applications are too big to do this
(unless I had decided to inherit everything and put code
in the controls themselves).

I could envision setting up something that looks for any
application activity, but most of my applications do
things on their own even when there is no user there.

It would be great if there were an application level
event called 'OnUserInteraction' where you could put
something like this. Does anything like that exist?

Thank you,
Mark Lauser - Crimson Software


Regards - OHM# OneHandedMan{at}BTInternet{dot}com
Nov 20 '05 #8
Without knowing the actual domain problem.

I was thinking that rather then have the application site idle (in memory)
for an hour one could schedule the application to start on the hour every
hour and the application would do it business and then shutdown.

"One Handed Man [ OHM# ]" <OneHandedMan{at}BTInternet{dot}com> wrote in
message news:O4**************@tk2msftngp13.phx.gbl...
Please explain to me how this would do what the OP wanted ?

OHM

solex wrote:
Herfried,

AT is the command line utility for the windows scheduler.

Dan

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:ei**************@TK2MSFTNGP10.phx.gbl...
* "solex" <so***@nowhere.com> scripsit:
How about the windows scheduler or AT?

What's AT?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>


Regards - OHM# OneHandedMan{at}BTInternet{dot}com

Nov 20 '05 #9
Mark,

Sorry I did not really understand your problem when I first read it please
disregard my other comments.

If this is a web app you can set a timeout(timer) when each page loads and
then use OnMouseMove event to reset the timeout.

In a windows-form app you could probably do a similar thing, create a form
that has the keypreview set to TRUE so all key event for the child controls
are registered with the form. On the form load or form activate start the
timer, in the event handler for keypress and mousemove you can reset the
timer. In the form de-activate (if mdi) stop the timer. Then have all of
your form inherit from this base form, if you want you could also do this
with a class.

In both senarios if the timer runs out you can exit your application.

Dan
<an*******@discussions.microsoft.com> wrote in message
news:0c****************************@phx.gbl...
-----Original Message-----
You could set a timer which gets reset each time the

application does
something, if it ever reaches the defined interval, then

exit the
application.

OHM


Is there an easy way to reset the timer whenever the user
does something in the application? I have previously
placed a line of code in each button, menu item, form,
etc. :p But today my applications are too big to do this
(unless I had decided to inherit everything and put code
in the controls themselves).

I could envision setting up something that looks for any
application activity, but most of my applications do
things on their own even when there is no user there.

It would be great if there were an application level
event called 'OnUserInteraction' where you could put
something like this. Does anything like that exist?

Thank you,
Mark Lauser - Crimson Software

Nov 20 '05 #10
* "solex" <so***@nowhere.com> scripsit:
AT is the command line utility for the windows scheduler.


Thanks for the information.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #11
* "Waldemar" <ro*****@unerj.br> scripsit:
I need to implement a TimeOut function in an application. When the
aplication will be idle for one our, for example, i need to clese it.
Someone has any idea about this?


C++ hook:

<http://www.codeproject.com/dll/trackuseridle.asp>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #12

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

Similar topics

9
by: E Sullivan | last post by:
I am having a time out issue when multiple users are accessing the server. This time out does not happen all of the time. My understanding is that the time out value is actually set in two places....
12
by: Geigho | last post by:
Setting session timeout in web.config file does not seem to have any effect. Any explanation or suggestion will be appreciated.
2
by: Greg Decos | last post by:
I am using forms authentication using a FormsAuthenticationTickets set to expire in 30 minutes and the ticket is added to the collection of cookies. I am not sure where the following values are...
4
by: DavidS | last post by:
First: There are several ways to confuse one regarding session timeout. (1) web.config - <sessionState timeout="20"> (2) IIS Manager | Internet Information Services | ServerNode | Default Web Site...
17
by: jensen bredal | last post by:
Hello, i'm struggling with a somehow badly understood session scenario. I provide acces to my pages based on form authentication using Session cookies. Som of my pages are supposed to be...
4
by: UJ | last post by:
I have a page where the user can upload a video file. As you can guess, this may take a while. Is there a way I can change the session timeout for just this one page? I would also want to change...
22
by: Nick Craig-Wood | last post by:
Did anyone write a contextmanager implementing a timeout for python2.5? I'd love to be able to write something like with timeout(5.0) as exceeded: some_long_running_stuff() if exceeded:...
25
by: =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?= | last post by:
I tried: <sessionState timeout="1"> </sessionState> bounced IIS, and after 1 minute still had a session. ??? -- thanks - dave
5
by: Masso | last post by:
Hallo to the group, my question is this: where i have to set timeout in a web application? If i set into sessionState with property Timeout="60", after 20 minutes the session is over. Always...
2
by: JimLad | last post by:
Hi, I've got a very basic asp.net page that accesses a very slow db query and siplays to screen. I'm hitting a timeout aftre about 3.5 to 4.5 minutes - seems to be variable. SQL connection...
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
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...
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: 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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.