In order to handle access violation exception, project should be configured with SEH Exceptions (/EHa).
I'm looking for handling access violation exceptions only. According to this Microsoft publication here, in order to catch this SEH exceptions, one must use the general catch catch(...)
that will catch all exception.
The question is whether there's an option to handle this exception in specific and leave other SEH unhandled, not necessarily by using the try/catch pattern.
UPDATE: thanks to the link in a comment below, I've found out about the __try/__except
structure to handle SEH exceptions with many intrinsic functions that may put some more details about the exception nature.
In may case, i only care about AV exception, and i wish to avoid it. However, I'm using C++ and prefer using the standard try/catch
structure (while configuring The /EHa compiler option).
Is there an option to use those intrinsic function in order to check the exception type in my case ?