---------------------------
Microsoft Visual C++ Debug Library
---------------------------
Debug Assertion Failed!Program: i:\vc++\vins\debug\vins.exe
File: dbgheap.c
Line: 1414Expression: _CrtIsValidHeapPointer(pUserData)For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.(Press Retry to debug the application)
---------------------------
终止(A) 重试(R) 忽略(I)
---------------------------VS 2005下新建Windows窗体,在stdafx.h中
#include <afxwin.h>
#include <afxext.h>
#include <afxdisp.h>
项目->项目属性->配置属性->MFC的使用已改为"在共享 DLL 中使用 MFC"
公共语言运行库支持(/clr)已改为"公共语言运行库支持(/clr)".
编译运行就碰上这个错误请大大解救.
偶是新手,谢谢了!

解决方案 »

  1.   

    没有错误语句。
    Rebuild All什么意思?
    我是新手,好多不懂
      

  2.   

    “test1.exe”: 已加载“D:\test1\debug\test1.exe”,已加载符号。
    “test1.exe”: 已加载“C:\WINDOWS\system32\ntdll.dll”,未加载任何符号。
    “test1.exe”: 已加载“C:\WINDOWS\system32\mscoree.dll”,未加载任何符号。
    “test1.exe”: 已加载“C:\WINDOWS\system32\kernel32.dll”,未加载任何符号。
    “test1.exe”: 已加载“C:\WINDOWS\system32\advapi32.dll”,未加载任何符号。
    “test1.exe”: 已加载“C:\WINDOWS\system32\rpcrt4.dll”,未加载任何符号。
    “test1.exe”: 已加载“C:\WINDOWS\system32\secur32.dll”,未加载任何符号。
    “test1.exe”: 已加载“C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\msvcr80d.dll”,已加载符号。
    “test1.exe”: 已加载“C:\WINDOWS\system32\msvcrt.dll”,未加载任何符号。
    “test1.exe”: 已加载“C:\WINDOWS\system32\user32.dll”,未加载任何符号。
    “test1.exe”: 已加载“C:\WINDOWS\system32\gdi32.dll”,未加载任何符号。
    “test1.exe”: 已加载“C:\WINDOWS\system32\oleaut32.dll”,未加载任何符号。
    “test1.exe”: 已加载“C:\WINDOWS\system32\ole32.dll”,未加载任何符号。
    “test1.exe”: 已加载“C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugMFC_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_c8452471\mfc80d.dll”,已加载符号。
    “test1.exe”: 已加载“C:\WINDOWS\system32\shlwapi.dll”,未加载任何符号。
    “test1.exe”: 已加载“C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\msvcm80d.dll”,已加载符号。
    “test1.exe”: 已加载“C:\WINDOWS\system32\imm32.dll”,未加载任何符号。
    “test1.exe”: 已加载“C:\WINDOWS\system32\lpk.dll”,未加载任何符号。
    “test1.exe”: 已加载“C:\WINDOWS\system32\usp10.dll”,未加载任何符号。
    “test1.exe”: 已加载“C:\WINDOWS\WinSxS\x86_Microsoft.VC80.MFCLOC_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_3415f6d0\mfc80CHS.dll”,未使用调试信息生成二进制文件。
    “test1.exe”: 已加载“C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll”,未加载任何符号。
    “test1.exe”: 已加载“C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.163_x-ww_681e29fb\msvcr80.dll”,未加载任何符号。
    “test1.exe”: 已加载“C:\WINDOWS\system32\shell32.dll”,未加载任何符号。
    “test1.exe”: 已加载“C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.3790.3959_x-ww_D8713E55\comctl32.dll”,未加载任何符号。
    “test1.exe”: 已加载“C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Culture.dll”,未加载任何符号。
    “test1.exe”: 已卸载“C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Culture.dll”
    “test1.exe”: 已加载“C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\mscorlib\7e92ef7cc099014d9e2d19ace67af422\mscorlib.ni.dll”,未加载任何符号。
    “test1.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll”,未加载符号。
    “test1.exe”: 已加载“C:\WINDOWS\system32\msctf.dll”,未加载任何符号。
    “test1.exe”: 已加载“C:\Program Files\360safe\safemon\safemon.dll”,未使用调试信息生成二进制文件。
    “test1.exe”(托管): 已加载“d:\test1\debug\test1.exe”,符号已加载。
    “test1.exe”: 已加载“C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorjit.dll”,未加载任何符号。
    “test1.exe”: 已加载“C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\diasymreader.dll”,未加载任何符号。
    “test1.exe”: 已加载“C:\WINDOWS\system32\rsaenh.dll”,未加载任何符号。
    “test1.exe”: 已加载“C:\WINDOWS\system32\psapi.dll”,未加载任何符号。
    “test1.exe”(托管): 已加载“C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_F75EB16C\msvcm80d.dll”,符号已加载。
    “test1.exe”: 已加载“C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\System\8a97f8d3612a554b9716cf4d13a49aed\System.ni.dll”,未加载任何符号。
    “test1.exe”(托管): 已加载“C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll”,未加载符号。
    test1.exe 中的 0x7c936efe 处最可能的异常: 0xC0000005: 读取位置 0x1cca986d 时发生访问冲突
    “test1.exe”: 已加载“C:\WINDOWS\system32\version.dll”,未加载任何符号。
    “test1.exe”: 已卸载“C:\WINDOWS\system32\version.dll”
    “test1.exe”: 已加载“C:\WINDOWS\system32\apphelp.dll”,未加载任何符号。
    “test1.exe”: 已加载“C:\WINDOWS\system32\msctfime.ime”,未加载任何符号。
    “test1.exe”: 已加载“C:\WINDOWS\system32\xpsp2res.dll”,未使用调试信息生成二进制文件。
    调试时到报错的输出
      

  3.   

    刚才测试了一下. 
    没有
    #include <afxwin.h>
    #include <afxext.h>
    #include <afxdisp.h>
    这几句就没有问题
    加上
    #include <afxwin.h>
    后问题就出来了.点解啊?
    我建立的是windows窗体应用程序的项目
      

  4.   

    我也遇到了同样的问题,比较头疼,这篇博客提供了解决方向:
    http://blog.csdn.net/haokongdashi/archive/2010/02/23/5318461.aspx