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

Dmitriy Koltun 1 Reputation point

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));
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