I'm looking for utility that will generate a windows system hard error in windows XP 32-bit.
(I also can develop in VB6 if anyone knows of a technique to generate the error.)
It needs to be a reproducible effect that generates the message "xxxx.exe has encountered an error and needs to close".
I'm trying to monitor mining processes that seems to crash every few days or so, and I want to detect when the process terminates so I can automate their restart.
The problem is the process doesn't terminate until I click "Don't send error report" so the monitoring software doesn't see the process as failed.
I found a regfix to disable the errors, but I can't test it properly without being able to simulate the error in the first place.
Thanks
I'm not sure about VB syntax, but in C
char * p = 0;
*p = 1;
will give you C5 exception.
To close Windows Error Reporting (WER) window pragmatically, you need to search for werfault.exe process, look at the parent process to make sure it belongs to the process you are trying to monitor and kill it. For examples, look at my akbash watchdog code:
https://bitcointalk.org/index.php?topic=76208.0Messing up a pointer. That did it! Thanks for the tip. I have it crashing nicely in vb6.
I will check out your software when I have some time. It looks interesting.