.


:




:

































 

 

 

 





, try catch:

try {...}catch (__){...} try , catch. throw. catch, catch. catch , , . , , , , catch .

catch .

throw catch. . catch throw , , . , catch.

try catch . "" catch , . . catch

catch (...) . , .

SEH - Structured exception handling. ++. Windows Visual C++. , . ++, , SEH . , . , , - . SEH .

  • termination handling
  • exception handling

. __try, C++ , __finaly __except . :

#include "stdafx.h"void main(){ __try { } __finally { }}

__try, . __finally , __try, , , .

:

EXCEPTION_EXECUTE_HANDLER

EXCEPTION_CONTINUE_SEARCH

EXCEPTION_CONTINUE_EXECUTION

, , .

SEH :

, , :

__try { } _finally // { }

C++ . __try - . , .

, __finaly , __try: return, goto. longjump __finaly .

__finaly , .

. , . . __try . .

_leave. __try. __try __finaly. .. __try. GetExceptionInformation() GetExceptionCode (). EXCEPTION_POINTERS, - ; .

 






:


: 2016-07-29; !; : 576 |


:

:

! . .
==> ...

1513 - | 1307 -


© 2015-2024 lektsii.org - -

: 0.008 .