Sample program for testing VEH (Vectored Exception Handler) on Windows.
- Visual Studio Code
- C/C++
Fork and clone this repository.
$ git clone git@github.com:yourname/veh_sample.git
WARNING: THIS PROGRAM INTENTIONALLY CAUSES AN ACCESS VIOLATION EXCEPTION.
Compile with Developer Command Prompt for VS2022.
> cl main.c
Run.
> main.exe
main() START
VectoredHandler() START
Exception code: 0xC0000005
VectoredHandler() END [EXCEPTION_CONTINUE_EXECUTION]
main() END
This program is designed for x86 environment.
To enable IntelliSense in VSCode, set "C_Cpp > Default: IntelliSense Mode" to windows-msvc-x86
.
- Fork this repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create new Pull Request
MIT License