HELP!!!how to debug DLL, here is a case...在线等!also Stack overflow

tony_w2000 2003-12-12 11:36:58
程序在运行期间错误如下:
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
...全文
53 3 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
vcforever 2003-12-12
  • 打赏
  • 举报
回复
把你的DLL工程放到你的测试程序的目录下,然后进行单步调试,调试的时候会进入你的DLL代码,跟踪一下,看看那里出现的错误!
azs 2003-12-12
  • 打赏
  • 举报
回复
首先在VC的IDE环境打开你的DLL工程(本例应为ZWinSock.dll),在project setting对话框的debug页中设定好用来测试的程序(本例应为TestCenter.exe),然后设置断点,按正常的调试步骤进行调试。

调试过程中,可以打开call stack对话框,查看你的堆栈,双击对话框中的函数名可直接跳转
aaasng 2003-12-12
  • 打赏
  • 举报
回复
打开dll工程,设定调试用exe路径,然后和调exe一样啊
Twitter Digg Facebook Del.icio.us Reddit Stumbleupon Newsvine Technorati Mr. Wong Yahoo! Google Windows Live Send as Email Add to your CodeProject bookmarks Discuss this article 85 Print Article Database » Database » Other databasesLicence CPOL First Posted 19 Jan 2012 Views 24,219 Downloads 992 Bookmarked 74 times RaptorDB - The Key Value Store V2 By Mehdi Gholam | 8 Mar 2012 | Unedited contribution C#.NETDBABeginnerIntermediateAdvanceddatabase Even faster Key/Value store nosql embedded database engine utilizing the new MGIndex data structure with MurMur2 Hashing and WAH Bitmap indexes for duplicates. See Also More like this More by this author Article Browse Code Stats Revisions (8) Alternatives 4.95 (56 votes) 1 2 3 4 5 4.95/5 - 56 votes μ 4.95, σa 1.05 [?] Is your email address OK? You are signed up for our newsletters but your email address is either unconfirmed, or has not been reconfirmed in a long time. Please click here to have a confirmation email sent so we can confirm your email address and start sending you newsletters again. Alternatively, you can update your subscriptions. Add your own alternative version Introduction What is RaptorDB? Features Why another data structure? The problem with a b+tree Requirements of a good index structure The MGIndex Page Splits Interesting side effects of MGIndex The road not taken / the road taken and doubled back! Performance Tests Comparing B+tree and MGIndex Really big data sets! Index parameter tuning Performance Tests - v2.3 Using the Code Differences to v1 Using RaptorDBString and RaptorDBGuid Global parameters RaptorDB interface Non-clean shutdowns Removing Keys Unit tests File Formats File Format : *.mgdat File Format : *.mgbmp File Format : *.mgidx File Format : *.mgbmr , *.mgrec History Download RaptorDB_v2.0.zip - 38.7 KB Download RaptorDB_v2.1.zip - 39 KB Download RaptorDB_v2.2.zip - 39 KB Download RaptorDB_v2.3.zip - 39.6 KB D

15,473

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 进程/线程/DLL
社区管理员
  • 进程/线程/DLL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧