使用Visual Studio 2003 .net调试时ntdll.dll异常 [英] ntdll.dll exception when debug with Visual Studio 2003 .net

查看:201
本文介绍了使用Visual Studio 2003 .net调试时ntdll.dll异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个Win32控制台应用程序,创建VS 2003 .net.

如果我进行编译并在调试中运行,则它会在几秒钟后崩溃,但ntdll.dll会产生异常.它没有提供任何有用的信息,调用堆栈中的所有内容都指向ntdll.dll.它并不总是这样做,这似乎是一个间歇性问题,我希望它会消失.但事实并非如此,现在似乎仍然存在!

当我在发行版中编译并运行它时,不会发生这种情况.

因此,目前我无法调试代码.

我当时只是想开始一个新项目,然后复制所有文件并查看是否再次发生,但是有人知道是什么原因吗?

Hi,

I have a win32 console app create din VS 2003 .net.

If I compile and run in debug, it crashes after a couple of seconds with an exception coming from ntdll.dll. It does not give any helpful info, everything in the callstack points to ntdll.dll. It didn''t always do this, it seemed to be an intermittent problem for a while which I hoped would go away. But it didn''t, and now it seems here to stay!

This does not happen when I compile in release and run it.

So I cannot debug my code at the moment.

I was thinking of just starting a new project and copying all my files in and seeing if it happens again, but does anyone know what may be causing this?

推荐答案

我同意Richard的看法-我多年来没有看到过ntdll的异常,这实际上并不是我的错...

通常它是一个损坏的字符串或一个损坏的指针-发布时有效"是一个很好的指示,它与内存相关

您可以尝试启用OS符号-可以从MS Symbol服务器下载-使堆栈转储更加易懂-在options/debug中的某个位置

您可能必须更新一些dll才能使其正常工作 [^ ]
I agree with Richard - I''ve not seen an exception in ntdll that wasn''t actually my fault for years and years now ...

It''s normally a broken string or a corrupt pointer - the ''works in release'' is a very good indicator it''s memory related

What you can try to do is enable OS symbols - downloadable from the MS Symbol server - it makes the stack dump considerably more intelligible - somewhere in options/debug

You may have to update some dll''s to make it work[^]


感谢大家,我确实一步一步找到了问题所在.不用说,您没事,这是我的错误(尝试检查未打开的RAID驱动器上的磁盘使用情况).
我再也不会怪其他事情了!抱歉.
Thanks to everyone, I did step through and eventually found the problem. Needless to say, you were all right, it was my error (trying to check disk usage on a raid drive that wasn''t switched on).
Never again will I try to blame something else! Sorry.


这篇关于使用Visual Studio 2003 .net调试时ntdll.dll异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆