都什么原因会导制这种情况,如何监测?我用debug,和release都无错误。如何避免?高手帮忙。

解决方案 »

  1.   

    试不是你自己些的程序? 是的话debug 一下看看
      

  2.   

    不设断点,按F5,然后在output窗口的debug信息中会看到 XXX creation failed的字样,MFC在状态栏等创建失败是会悄悄退出,你的可能就是这个问题
      

  3.   

    有些退出,有时不退。
    在release中退出的情况居多。
    在debug中退出out窗口出现
    First-chance exception in ***.exe: 0xC0000005: Access Violation.disassembly窗口出现49532D52   ???
    49532D53   ???
    49532D54   ???
    49532D55   ???
    49532D56   ???
    49532D57   ???
    ………
      

  4.   

    debug step by step,no other ways.
      

  5.   

    debug step by step ,this is very diffcult