Exemplo n.º 1
0
    public static String what(System.Exception e)
    {
        IntPtr ptr = SprExport.Spr_SEH_Exception_what();
        String s1  = Marshal.PtrToStringBSTR(ptr);
        String s2  = e.ToString();

        return(s1.Substring(0, s1.Length - 1) + "\n" + s2);
    }
Exemplo n.º 2
0
    public static String what()
    {
        IntPtr ptr = SprExport.Spr_SEH_Exception_what();

        return(Marshal.PtrToStringBSTR(ptr));
    }