Click here to Skip to main content
15,795,398 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: How to catch exception before a crash happens? Pin
jtasph21-Oct-09 21:39
jtasph21-Oct-09 21:39 
AnswerRe: How to catch exception before a crash happens? Pin
Randor 21-Oct-09 21:57
professional Randor 21-Oct-09 21:57 
GeneralOT Pin
Rajesh R Subramanian21-Oct-09 21:59
professionalRajesh R Subramanian21-Oct-09 21:59 
GeneralRe: OT Pin
Randor 21-Oct-09 22:06
professional Randor 21-Oct-09 22:06 
GeneralRe: OT-2 Pin
CPallini21-Oct-09 22:10
mveCPallini21-Oct-09 22:10 
JokeRe: OT-2 Pin
Rajesh R Subramanian22-Oct-09 8:39
professionalRajesh R Subramanian22-Oct-09 8:39 
GeneralRe: OT-2 Pin
CPallini22-Oct-09 10:26
mveCPallini22-Oct-09 10:26 
AnswerRe: How to catch exception before a crash happens? Pin
Naveen21-Oct-09 21:59
Naveen21-Oct-09 21:59 
jtasph wrote:
I don't know what's the meaning of "0x33, 0xC0, 0xC2, 0x04, 0x00".


As David said, it is hex code for "return 0;" . So after you do that WriteProcessMemory(), the SetUnhandledExceptionFilter() will not work any maore it will simply reurn 0. Not only for CRT calls for you also( I am not sure when CRT calls this function. If it has called the SetUnhandledExceptionFilter() before you disable it, the CRT exception handler will work ).

However I suspect the necessity of supressing the CRT exception trough the above method. I guess the you can use the _set_abort_behavior() to control the exception handler of CRT.

More over there is AddVectoredExceptionHandler() function which will be executed before the exception handler specified in SetUnhandledExceptionFilter().


QuestionRe: How to catch exception before a crash happens? Pin
jtasph21-Oct-09 22:26
jtasph21-Oct-09 22:26 
AnswerRe: How to catch exception before a crash happens? Pin
Naveen21-Oct-09 22:53
Naveen21-Oct-09 22:53 
AnswerRe: How to catch exception before a crash happens? Pin
Randor 21-Oct-09 23:10
professional Randor 21-Oct-09 23:10 
GeneralRe: How to catch exception before a crash happens? Pin
jtasph21-Oct-09 23:18
jtasph21-Oct-09 23:18 
QuestionRe: How to catch exception before a crash happens? [modified] Pin
jtasph22-Oct-09 0:16
jtasph22-Oct-09 0:16 
QuestionNeed help for CStdioFile Read mode Pin
Nicholas Amh21-Oct-09 20:23
Nicholas Amh21-Oct-09 20:23 
AnswerRe: Need help for CStdioFile Read mode Pin
Adam Roderick J21-Oct-09 20:38
Adam Roderick J21-Oct-09 20:38 
GeneralRe: Need help for CStdioFile Read mode Pin
Nicholas Amh21-Oct-09 20:47
Nicholas Amh21-Oct-09 20:47 
GeneralRe: Need help for CStdioFile Read mode [modified] Pin
Adam Roderick J21-Oct-09 20:54
Adam Roderick J21-Oct-09 20:54 
AnswerRe: Need help for CStdioFile Read mode Pin
Naveen21-Oct-09 20:38
Naveen21-Oct-09 20:38 
GeneralRe: Need help for CStdioFile Read mode Pin
Nicholas Amh21-Oct-09 21:11
Nicholas Amh21-Oct-09 21:11 
GeneralRe: Need help for CStdioFile Read mode Pin
Naveen21-Oct-09 21:24
Naveen21-Oct-09 21:24 
GeneralRe: Need help for CStdioFile Read mode Pin
Nicholas Amh21-Oct-09 22:48
Nicholas Amh21-Oct-09 22:48 
GeneralRe: Need help for CStdioFile Read mode Pin
Richard MacCutchan22-Oct-09 0:18
mveRichard MacCutchan22-Oct-09 0:18 
AnswerRe: Need help for CStdioFile Read mode Pin
theCPkid21-Oct-09 20:42
theCPkid21-Oct-09 20:42 
GeneralRe: Need help for CStdioFile Read mode Pin
Nicholas Amh21-Oct-09 21:24
Nicholas Amh21-Oct-09 21:24 
GeneralRe: Need help for CStdioFile Read mode Pin
theCPkid22-Oct-09 1:22
theCPkid22-Oct-09 1:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.