Skip to content

Process.MainWindowTitle and Process.Responding are not correctly refreshed #36768

@JeroenOortwijn

Description

@JeroenOortwijn

As a followup on issue #32690, both the properties Process.MainWindowTitle and Process.Responding are also not properly refreshed.

I have a test where I check if a program has loaded a file by checking if the filename is present in the title of the program:

private bool IsDoneLoading()
{
    _roboguide.Refresh();
    return _roboguide.MainWindowTitle.Contains(_workCellName);
}

While looping over this, after a while the function returns true in .NET Framework, but stays false in .Net 5 preview 4.

The fix for this would be similar to the one in PR #32695:
In RefreshCore(), add _mainWindowTitle = null;.

While looking through the code, I noticed that Process.Responding might also have the same issue.
The fix for this would be:
In RefreshCore(), add _haveResponding = false;.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions