If I know that a particular extern "C" function in my program (say, RaiseException) is the only function that raises SEH exceptions, and I want them converted to C++ exceptions, is there any way for me to "selectively enable" /EHa for that function, so that the exceptions get converted to CStructured_Exception without bloating or slowing down the rest of the program as normally caused by /EHa?
How to get the benefits of /EHa with /EHsc, on a particular function?
389 views Asked by user541686 At
1
There are 1 answers
Related Questions in WINAPI
- How to immediately apply DISPLAYCONFIG_SCALING display scaling mode with SetDisplayConfig and DISPLAYCONFIG_PATH_TARGET_INFO
- Changing the theme of a #32768 (menu) window class at runtime
- Issue with GetOpenFileName while debugging
- How to populate a ListBox with SendMessage?
- Is there a function to end a child process?
- HDR video publishing
- Frameless Qt + WinAPI maximized window size is bigger than the availableGeometry()
- Mount .iso file with python
- What is Win32 x86-64 CONTEXT::VectorRegister for?
- WinAPI - right mouse drag & drop and IContextMenu
- Win32 per-filesystem cache tuning?
- Client connection timeout during Android & Windows PC communication via sockets
- MessageBoxEx sometimes shows as hollow window, border only, and only on Windows 11
- Win32api send message and Pydirectinput and Powertoy (Keyboard Manager ) Not working when open the application
- Would it be possible to run an application right after csrss.exe loads? (Windows)
Related Questions in VISUAL-C++
- Visual Studio C++, breakpoints not stopping debugging DLL (GODOT GDExtention)
- MSVC Compiler Template Sizeof...() not working
- Visual Studio C++ Access to path is denied
- How can I use CsvHelper to parse a string into a list of tokens?
- Unable to add request headers via CHttpFile - C++/MFC
- Is there a worked example of using CStrBufT with a CString?
- wxMediaCtrl causes access read violation when loading
- Why do I get weird class method redefinition errors when I compile with Visual C++ 2022?
- How to make VCPKG copies dependencies pdb files in output directory
- Difference between INT_MIN , INT8_MIN , INT16_MIN. For MAX too
- 'pip install mariadb' states that it cannot find include file 'mysql.h' on my Windows 10 dekstop
- Windows Custom Credential Provider is not displaying tile on logon for all users in a pc
- Why does MSVC never return struct in RAX for member-functions?
- Configure target system
- UI Interface Crashes and Hanging Issues in MFC Application
Related Questions in SEH
- Reason for (win) x64-calling convention restrictions in epilogues
- Equivalent pointer probe from MSVC to GCC in a library
- Does Vector Exception Handlers handle all exceptions in different threads including C++ exceptions?
- Is there a way to leave the exception unhandled after invoking the VectorExceptionHandler the first time?
- Why does SEH in main jump back to same Vector Exception Handler?
- How to get Thread Id from the exception pointer in the VectorExceptionHandler?
- How to handle SEH exception on a global level
- How do I modify the instruction pointer from a handler function in Windows/MASM?
- Does SEH make stores/writes more expensive?
- How to solve access violation reading location in google test?
- Structured Exception Handling and MinGW
- How to catch SEH thrown from ntdll.dll's TppRaiseInvalidParameter?
- Is it possible to wrap both for regular exception and SEH exceptions
- How to set an exception using masm64?
- Does Clang support SEH?
Related Questions in STRUCTURED-EXCEPTION
- Is Visual C++ SEH available on other OS?
- SEH Eceptions - generating and handling
- Under what circumstances does EXCEPTION_RECORD link to another nested exception?
- What is allowed after catching an unhandled exception
- error C2712 Cannot use __try in functions that require object unwinding
- How can I tell if the Microsoft C++ code I'm running was compiled with the /EHa switch?
- Recovering context after handling exception only works with VS /RTCs (run time checks) enabled
- Configuring floating point unit context in WIN32 vs WIN64
- .seh_stackalloc and stack alignment
- Restoring SIMD registers on Windows x64 during unwinding
- Is __finally supposed to run after EXCEPTION_CONTINUE_SEARCH?
- How do I expose through COM an exception caught with structured exceptions handling?
- Best place to call MiniDumpWriteDump() to catch a crash
- How can I handle an access violation in Visual Studio C++?
- Mapping external error codes to std::error_condition
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
There's obviously no compiler option to do that. Maybe: