-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
windows-kill.exe occasionally fails for Windows after May 2020 Update #9
Comments
It seems to work again if I change the CtrlRoutine::findAddressByStackBackTrace() function to this: void CtrlRoutine::findAddressByStackBackTrace() {
HMODULE hModule = GetModuleHandleA("kernel32.dll");
if (hModule != NULL) {
this->address = (LPTHREAD_START_ROUTINE)GetProcAddress(hModule, "CtrlRoutine");
}
} Edit: This has been tested and works on both Windows 7 and 10. |
Also getting this when running 32bit to try to kill 64bit process. When using correct exe release however, I am still seeing checkAddressIsnotNull occassionaly. In my use-case Bat files call bat files which start bat files and keep process restarting if it closes unexpectedly. Got around this with the following
Also I think that the exit codes returned from int main should be 0 for success something else for errors? Good also if windows-kill can have a -w wait for clean close option. |
update and fix ElyDotDev#9
After updating Windows to version 10.0.19041.388 (May 2020 Update), then
windows-kill.exe
started to occasionally fail like this:This is for the pre-built
windows-kill.exe
for 1.1.4.The text was updated successfully, but these errors were encountered: