Forum Discussion
teddy77777
15 years agoContributor
Ok, so I found that there is a timeout setting in the Freeze Diagnostics part of the Project Properties. Although it was already set at 30000 I added a bunch of zeros to that to get around this issue. My program however was only not responing for about 2-3 seconds and TC was still closing it.
Also I was hoping to figure out why the code below was not working?
Also I was hoping to figure out why the code below was not working?
function ProcessTest()
{
var p, ProName;
ProName = GetProgramName();
p = Sys["Process"](ProName);
while(!IsProcessResponding(p))
{
Log["Warning"]("Process Not Responding For Some Reason!");
Delay(500);
}
}
catch(e)
{
Log["Error"](e["description"]);
}
}
function IsProcessResponding(p)
{
var process;
try
{
process = dotNET["System_Diagnostics"]["Process"]["GetProcessById"]((p["ProcessID"]))
return process.Responding;
}
catch(e)
{
Log["Error"](e["description"]);
}
}
Related Content
- 4 years ago
Recent Discussions
- 10 hours ago
- 7 days ago
- 10 days ago