Restart in "Application has stopped working" run app from another directory.

Dmitriy Koltun 1 Reputation point
2022-11-14T16:13:23.443+00:00

Button "Restart" in "Application has stopped working" runs app from another directory.
For example, i run application and it doesn't respond and this dialog is showing, after click "Restart" new app is running and if we check inside this app startup directory, for example, with using TinyProcessLib:

std::string result;
auto fetchProcessOutput = &result
{
result = std::string(bytes, n);
};

auto process = TinyProcessLib::Process(L"cmd cd", {}, std::move(fetchProcessOutput));
process.get_exit_status();
std::cout << result << std::endl;

i see in output some random directory, why it's happening?

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,989 questions
{count} votes