High processor usage

  • Thread starter Thread starter George Gita
  • Start date Start date
Hi Jay B:
It sounds like you really want the main thread to wait for the timer thread
to finish. :-)

I did show him a simple system.timers.timer sample without any loop.

Because all other samples are in my opinion only processor consuming, very
usable if you have extra threads and want to show processing to a user like
Armin did in his sample.

:-))

Cor
 
Cor,
I saw your example, I just did not see how you prevent Main from existing.

Also your example does not include the AutoResetEvent, which may be a better
way for George to handle exiting Main.

I got the impression that George is writing a Console application, which
does not have the Application.Run statement that prevents Main from
existing.

Hope this helps
Jay
 
Hi Jay B,

I think you are right for that console application,
The OP did want a context menu in it, I thought that was not possible.
Sorry I did not know that you could use a NotifiIcon and a Context menu in a
console program without using the windowforms.

:-)

Cor

This was that message. I have paste it nice readable for you.
 
Back
Top