How do I know that the console application does not respond?
Posted: Sun May 15, 2011 7:40 pm
Good day!
Interested in the following question:
How do I know when the console does not work?
Suppose I create a console application:
And the program is as follows:
All functions have returned result TRUE
Generally there is a way of catching these problems? How do I know that the console application hangs (not responding)?
I have a lot of which asked this question, but I think you'll be able to answer it because I think that you are most know of these mechanisms work windows.
Thanks in advance!
P.S. Text translated by Google Translator. (Not so well know English).
Interested in the following question:
How do I know when the console does not work?
Suppose I create a console application:
Code: Select all
program hung;
{$APPTYPE CONSOLE}
begin
while true do;
end.
Code: Select all
procedure TForm1.Button1Click(Sender: TObject);
const
Prc='hung.exe';
begin
Process(Prc).ServiceProcess:=True;
if Process(Prc).IsStillRunning then
ListBox1.Items.Add('IsStillRunning = True')
else
ListBox1.Items.Add('IsStillRunning = False');
if Process(Prc).IsStillValid then
ListBox1.Items.Add('IsStillValid = True')
else
ListBox1.Items.Add('IsStillValid = False');
if Process(Prc).IsValid then
ListBox1.Items.Add('IsValid = True')
else
ListBox1.Items.Add('IsValid = False');
end;
Generally there is a way of catching these problems? How do I know that the console application hangs (not responding)?
I have a lot of which asked this question, but I think you'll be able to answer it because I think that you are most know of these mechanisms work windows.
Thanks in advance!
P.S. Text translated by Google Translator. (Not so well know English).