Displaying 1 result from an estimated 1 matches for "pnull".
Did you mean:
null
2001 Jul 11
1
Porting MS Structured Exception Handling to Linux.
...eption).
3. when a OS trap -- like an access violation -- occurs the specified
function will be called.
4. From within the body of that function a user defined exception object
(MyAccessViolationException) can be thrown which can be caught anywhere in
the offending stack frame. e.g.
try
{
int* pNull = 0;
*pNull = 12;
}
catch (MyAccessViolationException& e)
{
printf ("success.\n");
}
Having researched the web, I have taken the followign approach: When I
receive a SIGSEGV signal, I need to insert the "exception throwing" function
into the stack frame which cause...