• 在有html文本编辑控件退出时报错


    html文本编辑控件的窗体上,退出时,报错,在开发环境中,项目直接中断退出

    发现是这句话造成的

         IntPtr ptr = Marshal.GetIDispatchForObject(this.theSite);
                            int i = Marshal.Release(ptr);
                            while (i > 0)
                            {
                                i = Marshal.Release(ptr);
                            }

    没有找到原因

    直接try 了

       try
                        {
                            IntPtr ptr = Marshal.GetIDispatchForObject(this.theSite);
                            int i = Marshal.Release(ptr);
                            while (i > 0)
                            {
                                i = Marshal.Release(ptr);
                            }
                        }
                        catch { }

  • 相关阅读:
    上经 -- 乾【卦一】乾为天(三)
    上经 -- 乾【卦一】乾为天(一)
    8. Shell 文件包含
    7. Shell 函数
    6. Shell 流程控制
    5. test命令
    4. printf 命令
    3. Shell 基本运算符
    2. Shell 传递参数
    shell介绍
  • 原文地址:https://www.cnblogs.com/cwfsoft/p/1673676.html
Copyright © 2020-2023  润新知