Verify that model.AppPid is defined to avoid error messages on every hover of a pinned launcher in Task Manager that isn't launched.
In what situation is it undefined?
Remote clients have no pid, but might be nicer to fix the model to return 0.
Only actual windows have PIDs, the role isn't implemented for startup tasks or launchers iirc
+1 for fixing the model instead (0 also for startup tasks?)
It was suggested to change the model (C++ code? where?) instead.