Re: Timer in Console application

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



why not just replace with an infinite loop with a sleep in?


"Aart Nicolai" <aartnicolai@xxxxxxxxx> wrote in message
news:1135859142.317096.322660@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi all,
>
> I have developed a vb.net console application which will run some code
> every [x] seconds. To get this working I used a timer "System.Timers".
> When I start my console application it exits within a second. So I
> added the line: "Console.Read()". Everything seemes to run fine but
> after a few days the application stopped. Without an error.
> I think it has something to do with the lifetime of the
> "Console.Read()". Is this right?
>
> Is there another trick to solve this timer problem?
>
> Thanks,
>
> Aart
>


.



Relevant Pages

  • Strange behavior of redirected stdout. Streams Broken?
    ... running a console application). ... - The interceptor starts the application directly. ... That's right -- no line after the Sleep is captured. ... gets any further characters on the output end of the pipe. ...
    (microsoft.public.dotnet.general)
  • Capturing stdout from a console app -- not working
    ... running a console application). ... - The interceptor starts the application directly. ... That's right -- no line after the Sleep is captured. ... gets any further characters on the output end of the pipe. ...
    (microsoft.public.dotnet.general)
  • Re: How do I make a User login shutdown my box?
    ... > a shutdown of the box. ... > I've added a user called 'Sleep' and added this user to the root group ... allow users logged in on the console to ...
    (RedHat)
  • Re: Paging Champ
    ... Saab's ignitions are in the centre console under the handbrake. ... to sleep in the back of my old 900 Turbo when camping, ...
    (uk.rec.motorcycles)
  • Re: More about sleep problems?
    ... I try putting my computer to sleep in the following ways. ... I press the Power button momentarily on the front of the Mac. ... Have you taken a look at your console and system logs to see if any error messages are generated when you put the machine to sleep? ... Open /Applications/Utilities/Console, then from the Console menu bar, select File> Open Console Log and File> Open System Log. ...
    (comp.sys.mac.system)