Win32½á¹¹»¯Òì³£´¦Àí£¨SEH£©Ì½ÃØ(ÉÏ)
ÕâÁ½¸öº¯ÊýµÄʹÓ÷¶Î§ÁË¡££©
ÏÖÔڻص½À©Õ¹µÄ EXCEPTION_REGISTRATION ½á¹¹ÉÏÀ´¡£ÔÚÕâ¸ö½á¹¹¿ªÊ¼Ç°µÄ8¸ö×Ö½Ú´¦£¨¼´[EBP-18H]´¦£©£¬Visual C++ ±£ÁôÁËÒ»¸öDWORDÀ´±£´æËùÓÐprolog´úÂëÖ´ÐÐÍê±ÏÖ®ºóµÄ¶ÑÕ»Ö¸Õ루ESP£©µÄÖµ£¨Êµ¼ÊÉú³ÉµÄÖ¸ÁîΪMOV DWORD PTR [EBP-18H],ESP£©¡£Õâ¸öDWORDÖб£´æµÄÖµÊǺ¯ÊýÖ´ÐÐʱESP¼Ä´æÆ÷µÄÕý³£Öµ£¨³ýÁËÔÚ×¼±¸µ÷ÓÃÆäËüº¯Êýʱ°Ñ²ÎÊýѹÈë¶ÑÕ»Õâ¸ö¹ý³Ì»á¸Ä±ä ESP¼Ä´æÆ÷µÄÖµ²¢ÔÚº¯Êý·µ»Øʱ»Ö¸´ËüµÄÖµÍ⣬º¯ÊýÔÚÖ´Ðйý³ÌÖÐÒ»°ã²»¸Ä±äESP¼Ä´æÆ÷µÄÖµ£©¡£ ¿´ÆðÀ´ºÃÏñÎÒÒ»ÏÂ×Ó¸øÄã¹àÊäÁËÌ«¶àµÄÐÅÏ¢£¬ÎÒ³ÐÈÏ¡£ÔÚ¼ÌÐøÏÂȥ֮ǰ£¬ÈÃÎÒÃÇÏÈÔÝÍ££¬À´»Ø¹ËһϠVisual C++ ΪʹÓýṹ»¯Òì³£´¦ÀíµÄº¯ÊýÉú³ÉµÄ±ê×¼Òì³£¶ÑÕ»Ö¡£¬Ëü¿´ÆðÀ´ÏñÏÂÃæÕâ¸öÑù×Ó£º
ÔÚ²Ù×÷ϵͳ¿´À´£¬Ö»´æÔÚ×é³ÉÔʼ EXCEPTION_REGISTRATION ½á¹¹µÄÁ½¸öÓò£º¼´[EBP-10h]´¦µÄprevÖ¸ÕëºÍ[EBP-0Ch]´¦µÄhandlerº¯ÊýÖ¸Õë¡£Õ»Ö¡ÖеÄÆäËüËùÓÐÄÚÈÝÊÇÕë¶ÔÓÚVisual C++µÄ¡£°ÑÕâ¸öVisual C++Éú³ÉµÄ±ê×¼Òì³£¶ÑÕ»Ö¡¼Çµ½ÄÔ×ÓÀïÖ®ºó£¬ÈÃÎÒÃÇÀ´¿´Ò»ÏÂÕæÕýʵÏÖ±àÒëÆ÷²ãÃæSEHµÄÕâ¸öVisual C++ÔËÐÐʱ¿âÀý³Ì——__except_handler3¡£ __except_handler3 ºÍ scopetable ÎÒÕæµÄºÜÏ£ÍûÈÃÄã¿´Ò»¿´Visual C++ÔËÐÐʱ¿âÔ´´úÂ룬ÈÃÄã×Ô¼ººÃºÃÑо¿Ò»ÏÂ__except_handler3º¯Êý£¬µ«ÊÇÎÒ°ì²»µ½¡£ÒòΪ Microsoft²¢Ã»ÓÐÌṩ¡£ÔÚÕâÀïÄã¾Í½«¾Í×Å¿´Ò»ÏÂÎÒΪ__except_handler3º¯ÊýдµÄα´úÂë°É£º¡£ ͼ¾Å __except_handler3º¯ÊýµÄα´úÂ룺
|
ÁèÖڿƼ¼×¨ÒµÌṩ·þÎñÆ÷×âÓᢷþÎñÆ÷Íйܡ¢ÆóÒµÓʾ֡¢ÐéÄâÖ÷»úµÈ·þÎñ£¬¹«Ë¾ÍøÕ¾£ºhttp://www.lingzhong.cn ΪÁ˸ø¹ã´ó¿Í»§Á˽â¸ü¶àµÄ¼¼ÊõÐÅÏ¢£¬±¾¼¼ÊõÎÄÕÂÊÕ¼¯À´Ô´ÓÚÍøÂç,ÁèÖڿƼ¼×ðÖØÎÄÕÂ×÷ÕߵİæȨ£¬Èç¹ûÓÐÉæ¼°ÄãµÄ°æȨÓбØҪɾ³ýÄãµÄÎÄÕ£¬ÇëºÍÎÒÃÇÁªÏµ¡£ÒÔÉÏÐÅÏ¢ÓëÎÄÕÂÕýÎÄÊDz»¿É·Ö¸îµÄÒ»²¿·Ö,Èç¹ûÄúҪתÔر¾ÎÄÕÂ,Çë±£ÁôÒÔÉÏÐÅÏ¢£¬Ð»Ð»! |