程序在运行期间错误如下: 
Unhandled exception at 0x00391d12 (ZWinSock.dll) in TestCenter.exe: 0xC00000FD: Stack overflow.Debug模式汇编代码如下:(IDE自动停在*的那行,无法在继续)lastpage:
        sub     ecx,eax                 ; move stack down by eax
        mov     eax,esp                 ; save current tos and do a...*      test    dword ptr [ecx],eax     ; ...probe in case a page was crossed        mov     esp,ecx                 ; set the new stack pointer        mov     ecx,dword ptr [eax]     ; recover ecx
        mov     eax,dword ptr [eax + 4] ; recover return address        push    eax                     ; prepare return address
                                        ; ...probe in case a page was crossed
        ret请问这样我如何知道到底ZWinSock.dll那行除了错误,或哪些情况导致Stack overflow?谢谢。show me and you get the points

解决方案 »

  1.   

    打开dll工程,设定调试用exe路径,然后和调exe一样啊
      

  2.   

    首先在VC的IDE环境打开你的DLL工程(本例应为ZWinSock.dll),在project setting对话框的debug页中设定好用来测试的程序(本例应为TestCenter.exe),然后设置断点,按正常的调试步骤进行调试。调试过程中,可以打开call stack对话框,查看你的堆栈,双击对话框中的函数名可直接跳转
      

  3.   

    把你的DLL工程放到你的测试程序的目录下,然后进行单步调试,调试的时候会进入你的DLL代码,跟踪一下,看看那里出现的错误!