I'm trying to do:
try{
int * i = NULL;
*i = 3;
}catch(Exception &Err){
ShowMessage(Err.Message);
}
I though that this should catch access violation exception and handle it by displaying an error message.
But for some reason I get simple 'Access Violation' message instead of full one: 'Access Violation XXX in module YYY. Writing at address ZZZ'. BTW, ExceptObject() routine returns NULL for some strange reason.
What am I missing here?