access violation

i am creating a program ...and i want to catch access violation exception when it is occurred .. how to do this?
Last edited on
You probably shouldn't catch access violation exceptions, they are a sign you have something wrong in your code.
there is some programs can do this(i noticed this while i was reversing them)
the debugger stops at a memory location which is reserved
(access violation)
but the program handled this perfectly ...did i misunderstand??
Maybe the program uses something like IsDebuggerPresent() API.
do you mean .... if it is sensed any debugging it will change its behavior...maybe but this is not what i asked is possible to handle this(access violation) or what??
thank you all
Last edited on
Topic archived. No new replies allowed.