access violation

Clearner1 (38)
i am creating a program ...and i want to catch access violation exception when it is occurred .. how to do this?
Last edited on
naraku9333 (1038)
You probably shouldn't catch access violation exceptions, they are a sign you have something wrong in your code.
Clearner1 (38)
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??
modoran (1245)
Maybe the program uses something like IsDebuggerPresent() API.
http://msdn.microsoft.com/en-us/library/windows/desktop/ms680345(v=vs.85).aspx
Clearner1 (38)
do you mean .... if it is sensed any debugging it will change its behavior...maybe but this is not what i asked for....it is possible to handle this(access violation) or what??
thank you all
Last edited on
Registered users can post here. Sign in or register to post.