Running Programs list

  • Thread starter Thread starter bhavin
  • Start date Start date
B

bhavin

I created a console application with threads running infinite loops. Since
it is "running" all the time, i expected it to show up in the "Running
Programs" list (Settings-> Memery), but it doesnt. Any reason why?

-bh
 
The running programs really should be named "running top windows". This is
just the way it works.
 
Hmm. intresting. So now, if i have infinite loop(s) in my program, how do i
"stop" it without having to restart the device?
 
You don't want to be forcing a stop with TerminateProcess() or something
drastic like that, in any case. The best way, in my opinion, to stop
threads is to create a named event, which any other program in the OS can
also get a handle to, and have it exit when that event is set.

Paul T.
 
Is there any article or sample code related to such a method?
Sounds really interesting.

Actually my aim is to create something like a windows service, invisible on
the main screen but with a system tray icon which will provide options to
close the application. The application needs to be polling a folder when
running.

tia
-bh
 
Back
Top