调试窗口显示:HEAP[Server.exe]: Invalid allocation size - 922a9aa8 (exceeded 7ffdefff)
HEAP[Server.exe]: Invalid allocation size - e52454c0 (exceeded 7ffdefff)
The thread 0x418 has exited with code 0 (0x0).
The thread 0x46C has exited with code 0 (0x0).
The thread 0x338 has exited with code 0 (0x0).
First-chance exception in Server.exe (MSCTF.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (MSCTF.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (MSCTF.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (MSCTF.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (MSCTF.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (MSCTF.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (MSCTF.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (MSCTF.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (MSCTF.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (MSCTF.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (MSCTF.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (MSCTF.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (MSCTF.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (MSCTF.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (MSCTF.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (MSCTF.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (MSCTF.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (MSCTF.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (MSCTF.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (MSCTF.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (MSCTF.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (MSCTF.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (MSCTF.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (MSCTF.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (MSCTF.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (MSCTF.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (MSCTF.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (MSCTF.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (MSCTF.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (MSCTF.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (MSCTF.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (KERNEL32.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (KERNEL32.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (KERNEL32.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (KERNEL32.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (KERNEL32.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (KERNEL32.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (KERNEL32.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (KERNEL32.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (KERNEL32.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (KERNEL32.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (KERNEL32.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (KERNEL32.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (KERNEL32.DLL): 0xC0000005: Access Violation.
First-chance exception in Server.exe (KERNEL32.DLL): 0xC0000005: Access Violation.
The thread 0x44C has exited with code 0 (0x0).不知是什么原因引起的? 
好多程序都是这样,虽然不影响程序运行,但总是不舒服。

解决方案 »

  1.   

    使用调试模式的时候经常会出现这种问题,应该是无意识中存储操作的错误。
    很多程序都这样的,包括一些商业API函数。
      

  2.   

    以前用过一个叫做boundchecker的软件可以帮你解决这个问题,找到你的无意的内存访问越界部分代码。
      

  3.   

    Running the debugger in an environment that supports Structured Exception Handling (SEH), like Windows NT, may produce exceptions like the following: 
    First-chance exception in MY.OCX (KERNEL32.DLL): 0xC0000005:
    Access Violation. 
    These exceptions occur at a lower level in the system than your control. For more information, see the Microsoft Knowledge Base article:
      

  4.   

    如果不影响程序运行,应该是这些Exception已经被DLL内部处理了吧,一般调试程序总是先于SEH或 C++ exception handle 得到exception提示( First-chance 意思就是保证首先提示)
      

  5.   

    同样的程序,有时有这个问题,有时又没有了,真是搞不懂mahatma_cn(智仁方丈) :
    你那段解释是哪里来的,有没有更详细的
      

  6.   

    访问没有权限的内存,但在dll中一般都会处理,不会对你的程序构成实质性的威胁