Re: Timing Question
- From: "Nicholas Paldino [.NET/C# MVP]" <mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 19 Aug 2005 11:16:56 -0400
Amir,
There are really no other suggestions. You will have to calculate the
amount of time to wait from the time you set the timer property until the
next time you have to run a task.
Also, I don't see why your machine would run out of memory if you used a
task scheduler. Once the executable is done, the process disappears, and
memory is reclaimed by the OS.
If anything, you run a greater risk of running out of memory by having
your own continuous process run. If you are doing nothing but running tasks
on a timed basis, then the scheduled task manager is really the way to go.
No need to reinvent the wheel. Also, as Ignacio said, this is not a
real-time OS, so you won't be able to get it to execute EXACTLY at 5 PM.
--
- Nicholas Paldino [.NET/C# MVP]
- mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx
"Amir Ghezelbash" <amir_gh99@xxxxxxxxxxx> wrote in message
news:OMF5%23%23MpFHA.3940@xxxxxxxxxxxxxxxxxxxxxxx
> hi thanks for your replies guys
>
> but i canot use the schdeule taks due to the fact that this exe has to
> be running all the time ...it does alot of things like managing a
> webapplication Database, if i were to use windows schedule task manager
> i have to create a new instance of the application every hour...which i
> dont really want to do ..it would desotry my whole logic plus... windows
> would run out of memory :P ....any other suggestions?
>
>
> ---
> Best Regards
> Amir
>
> *** Sent via Developersdex http://www.developersdex.com ***
.
- References:
- Re: Timing Question
- From: Ignacio Machin \( .NET/ C# MVP \)
- Re: Timing Question
- From: Amir Ghezelbash
- Re: Timing Question
- Prev by Date: using a config file
- Next by Date: Re: Compile with /3G extended memory space
- Previous by thread: Re: Timing Question
- Next by thread: Re: Timing Question
- Index(es):