不知道注意到嗎?
VC的例外處理
比較有意思的事情,這個使用還是比較廣泛的:P
vc 的CRT 源碼裏
這個文件--->EXSUP.INC
MAGIC_NUMBER1 equ 019930520h
MSVCRT,猜測是1993年c++有seh了?,還是win32 使用了?發生什麼了,呵呵,諸位發揮發揮
網上找到的,解釋居然是俄國文.....
Visual Studio 2003:
Code:
void CExceptionsTestApp::OnTest()
{
HRESULT hr;
try
{
throw E_OUTOFMEMORY;//
}
catch(HRESULT hrCaught)
{
hr = hrCaught;
}
catch(...)
{
hr = E_FAIL;
}
if(hr == E_OUTOFMEMORY)
AfxMessageBox("E_OUTOFMEMORY");
}
Code:
004012A0 push ebp
004012A1 mov ebp,esp
004012A3 push -01
004012A5 push 0041F36E
004012AA mov eax,fs:[00000000]
004012B0 push eax
004012B1 mov fs:[00000000],esp
...
0041F36E mov eax,0042563C
0041F373 jmp ___CxxFrameHandler
...
0042563C dd 19930520
00425640 dd 00000003
00425644 dd 004255F0
00425648 dd 00000001