错误提示如下:debug assertion failed!
              program:.........
              file:afxwin1.inl
              line:19
              ......
         点击忽略也能执行
  程序里包含了2个自己写的dll.
大家帮忙呀

解决方案 »

  1.   

    你查一下assert(参数)
                   这个参数是不是有错
      

  2.   

    错误好像出现在afxwinl.inl文件里的 ASSERT(afxCurrentInstanceHandle != NULL)这条语句
      

  3.   

    在realease下编译通过,执行时出现错误对话框如下:
               debug assertion Failed!
                program :....\xx.exe
                file: afxwin1.inl
                line:19
               for infomation on how you program can cause an assertion failure,
               see the visual c++documentation on asserts.
               (press retry to debug the application)
              终止         重试                  忽略
    点击忽略程序也能执行,在debug模式下编译执行都没问题
    我的程序包含2个自己写的dll(dll是正确的)
      

  4.   

    看看Release版本的错误时的调用堆栈。(需要生成调信息)
      

  5.   

    谢谢大家,问题找到了,就是指针没有初始化,因为我的dll为debug版,呵呵