I'm creating a PowerShell script that I'm going to execute using Start-Job. The job should continuously run in the background until I tell it to stop using Stop-Job. It should execute a SQL command on a timer with a specified duration and output the results to the jobs pipeline so I can retrieve them using Receive-Job.
Right now the j...
Hi Guys,
Ok, the problem is that when my app runs on the simulator it seems to work fine. On the device, however it does not update all the labels. I think the error is somewhere here:
- (IBAction)buttonclick1 {
self.startDate = [NSDate date];
double value = [self Level];
double value2 = [self Level2];
if ((va...
I was unable to find an answer to this question anywhere...
What happens with the exceptions thrown in the callback method for System.Threading.Timer, (or in the event handler for System.Timers.Timer). Is the exception propagated to the thread on which the timer was created or is the exception lost?
What are the side-effects of throwin...
Hi all, I have a little problem with memory management in a Windows Service written in C# (framework 3.5, visual studio 2008).
The service run fine, with a Timer and a CallBack the fire the procedure every 3 minutes.
Therefore, the memory in the Windows Task Manager slowly growing at every timer's run.
Have you an idea to how resolve t...
I want a program to stop executing for a certain amount of time. And i want this to happen in regular intervals. For example, i want a program to run for 5 minutes and then it should stop for 2 mintues and continue running for another 5 minutes after that. Is this possible with the C# Timer class?
...
I wrote a Timer class in order to use it within a windows service that is polling another system. I did this because I had two issues that the System.Timers.Timer is not addressing.
The Elapsed EventHanler is running in background and so its execution will abort if the main thread ends. I wanted the System.Timers.Timer.Stop function to...
i have a timer that calls its even handler method every 30 seconds.
but i want to initialy call this method.
the signature of the event handler method is
void TimerElapsed_GenerateRunTimes(object sender, System.Timers.ElapsedEventArgs e)
so how should i call it right?
i can do the following
TimerElapsed_GenerateRunTimes(timerGenerat...
I was under the impression that QueryPerformanceCounter was actually accessing the counter that feeds the HPET (High Performance Event Timer)---the difference of course being that HPET is a timer which send an interrupt when the counter value matches the desired interval whereas to make a timer "out of" QueryPerformanceCounter you have t...
I have an ascx control bound to a datasource with frequently changing data. Is there a quick way to have an ascx control postback, rebind and refresh itself every X seconds. The ascx control is in an update panel.
...
Hey all,
This is not your typical 1120. I know better than to have buttons/MCs without instance names on the timeline.
Nope, this problem resides in a I timer I built from script I found online. The undefined property is related to the timer class delay I want to implement.
What I'm trying to achieve is have the user click the next bu...
I recently decided that I needed to change from using milliseconds to microseconds for my Timer class, and after some research I've decided that QueryPerformanceCounter is probably my safest best. (The warning on Boost::Posix that it may not works on Win32 API put me off a bit). However, I'm not really sure how to implement it.
What I'...
Which Timer object should I use in long running processes in .Net?
The timer will be used in a Windows Service, and I wish to find the best fit performance wise.
...
I'm asking a question very similar to this one—dare I say identical?
An example is currently in the bottom navigation on this page.
I'm looking to display the name and link of the next and previous page when a user hovers over their respective icons. I'm pretty sure my solution will entail binding or timers, neither of which I'm seemin...
Hello, I have a web application and I'm attempting to put an ajax timer control in it to give me a post back every 10-20 seconds. (possibly longer depending on performance). I have a lot of dynamically created each with auto postback. These controls are inside of their own update panel.
Well, whenever an AJAX timer tick happens, I want...
Hi guys,
I asked a several time but must ask again, beacuse I don't know what to do:
On my Page I have an auctioneer system.
Every second I must:
Get Information if any bidder bid on it -> Database Query
Countdown the timer minus 1 second
Update a few panel with information if there is a new bidder (history that is shown, bla)
My ...
How can I know how long the current page has been loaded using Jquery or Javascript? What function?
...
I would like to create web page which will print simple message
x minutes to shutdown
where 'x' would decrease once a minute automatically without clicking 'refresh' in web browser. The value will be counted from data downloaded from SNMP source (that is why I wanted to use Python). AFAIK I should use Javascript (am I right ?).
Is it...
Hi, I have a chat client that continuously polls a server and fetches new messages.
From my def __init__() I have:
wx.CallAfter(self.pollServer)
Which is defined:
def pollServer(self):
t = self.updateMessages()
time.sleep(5)
self.pollServer()
Now printing the messages into the Terminal shows that it works but the GUI i...
I am currently working on a project that will act like a Online selling website such as Amazon, or Ebay in a very small scale. I was wondering if anyone could point me in the right direction on how to use Timers for C++. Learning Socket Programming at the moment, and was trying to incorporate the timer for the auction time when someone i...
I have a TFrame (fraDisplay) with a TTimer (timAnimateDataChange). The timer is used to control a small animation. In the form containing the frame I want to have a method that does something like this:
procedure TForm.DoStuff;
begin
DoSomeLogicStuff;
fraDisplay.AnimateResult;
WaitForAnimationToFinish;
DoSomeOtherLogicStuff;...