#include <Windows.h>
#include <iostream>
#include <intrin.h>
using namespace std;
int main()
{
__try
{
__debugbreak();
cout << "hello world" << endl;
}
__except( []( EXCEPTION_POINTERS &ep )
{
ep.ContextRecord->Rip += 1;
return EXCEPTION_CONTINUE_EXECUTION;
}( *GetExceptionInformation() ) )
{
}
}
Try this with a signal handler, or you may prefer suicide.
Am 13.06.2024 um 05:40 schrieb Sam:
Bonita Montero writes:
#include <Windows.h>
#include <iostream>
#include <intrin.h>
using namespace std;
int main()
{
__try
{
__debugbreak();
cout << "hello world" << endl;
}
__except( []( EXCEPTION_POINTERS &ep )
{
ep.ContextRecord->Rip += 1;
return EXCEPTION_CONTINUE_EXECUTION;
}( *GetExceptionInformation() ) )
{
}
}
Try this with a signal handler, or you may prefer suicide.
I regret to inform you the unfortunate fact that you have confused
comp.lang.c++ with Stackoverflow. It is the latter where this exact solution >> is often offered as a cure-all that remedies all kinds of undefined behavior.
Your cooperation in ensuring that comp.lang.c++ remains unaffected by
Stackoverflow is greatly appreciated.
It's C++ because I'm using a lambda, dude.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 57:00:56 |
Calls: | 10,397 |
Calls today: | 5 |
Files: | 14,067 |
Messages: | 6,417,447 |
Posted today: | 1 |