Sanje²v
2009-10-12 00:22:11 UTC
Hi to all,
I have enabled 'SEH with Exceptions' options in my VC++ 2008 Express
compiler and would like to filter 'Access violation' exception in a
code (unmanaged) guarded by a try-catch block. How can I know that the
exception raised in a catch block is due to access voilation? I can
use 'GetExceptionCode() only inside __try-__except block but if I use
it instead of try-catch I will have to change everything to __try-
__except. Is there any disadvantages to this? Can't I just filter the
required exception in a try-catch block instead?
-Sanjeev
I have enabled 'SEH with Exceptions' options in my VC++ 2008 Express
compiler and would like to filter 'Access violation' exception in a
code (unmanaged) guarded by a try-catch block. How can I know that the
exception raised in a catch block is due to access voilation? I can
use 'GetExceptionCode() only inside __try-__except block but if I use
it instead of try-catch I will have to change everything to __try-
__except. Is there any disadvantages to this? Can't I just filter the
required exception in a try-catch block instead?
-Sanjeev