none
How to catch a Win32 structured exception in release edition without /EHa RRS feed

  • 问题

  • I have a problem for write such a funcion.  i want to catch the exception,but i don't want use /EHa,because it efects the Efficiency。

    __try __catch may resolve this problem ,but  it may call another problem C2712

    such as

        try
        {
            BYTE* pch ;
            pch = ( BYTE* )00001234 ;
            *pch = 6 ;
        }
        catch(...)
        {
            AfxMessageBox(_T("catched")) ;
            throw;
        }

     

    thank you for your help!

    2010年11月4日 9:05

答案

全部回复