IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
  Reply to this topicStart new topicStart Poll

 Hacking exceptions

 
Swoorup  
Posted: Wednesday, Mar 7 2012, 05:04
Quote Post


innovator
Group Icon
Group: Members
Joined: Oct 28, 2008

au.gif

XXXXX



I think this is a general topic so I am posting here.
Whenever a program tries to execute invalid instructions
For instance: Supposing esi is 0x00000000
mov ecx, [esi]

This would cause crash and display an error handler message. And the program would end.
My question is: Is there a way to replace the standard crash handler with one of my own?
I would like to include much crash messages as possible. Values of registers, Stack, etc
PMMSNYahoo
  Top
 

 
K^2  
Posted: Wednesday, Mar 7 2012, 13:16
Quote Post


Vidi Vici Veni
Group Icon
Group: Zaibatsu
Joined: Apr 14, 2004

us.gif

Member Award




There are some kind of errors you can handle using try/catch blocks, but specifically what you are talking about is a segmentation fault, and no sane OS would let your program maintain control if it seg faults, so the error message you get will contain what OS devs thought you should have and nothing more.

If you aren't familiar with protected mode and its specifics, read up on differences between protected and real modes of x86 family of CPUs.
PMMSN
  Top
 

 

0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG