.net windows app意外崩溃 [英] .net windows app crash unexpectedly

查看:224
本文介绍了.net windows app意外崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的.net应用程序意外崩溃了。

我的代码和一切看起来很好。



我真的很难想到这个out $ / $


我从转储文件(.dmp)获得以下信息。



I am getting .net app crash unexpectedly.
My code and everything looks fine.

I am really struggling to figure this out

I got the below information from dump file(.dmp).

he

PID__4120__Date__08_29_2016_Time_11_13_58AM__139__Second_Chance_Exception_C0000005.dmp the assembly instruction at ntdll!RtlpLowFragHeapFree+c5 in C:\Windows\System32\ntdll.dll from Microsoft Corporation has caused an access violation exception (0xC0000005) when trying to write to memory location 0x00000000 on thread 0





我的尝试:



请帮我解决这个问题...



这让我抓狂......



谢谢。



What I have tried:

Please help me solve this issue...

This is driving me crazy..

Thanks.

推荐答案

您应该学习尽快使用调试器。而不是猜测你的代码在做什么,现在是时候看到你的代码执行并确保它完成你期望的。



调试器允许你跟踪执行逐行检查变量,你会看到它有一个停止做你期望的点。

调试器 - 维基百科,免费的百科全书 [ ^ ]

掌握Visual Studio 2010中的调试 - A初学者指南 [ ^ ]

http: //docs.oracle.com/javase/7/docs/technotes/tools/windows/jdb.html [ ^ ]

https://www.jetbrains.com/idea/help/debugging-your -first-java-application.html [ ^ ]



调试器在这里向您展示您的代码正在做什么,您的任务是与它应该做什么进行比较做。

当代码没有达到预期效果时,你就接近一个bug。



你需要找到您的代码出现异常。

由于调试器允许逐步运行您的程序,因此它不应该太复杂。
You should learn to use the debugger as soon as possible. Rather than guessing what your code is doing, It is time to see your code executing and ensuring that it does what you expect.

The debugger allow you to follow the execution line by line, inspect variables and you will see that there is a point where it stop doing what you expect.
Debugger - Wikipedia, the free encyclopedia[^]
Mastering Debugging in Visual Studio 2010 - A Beginner's Guide[^]
http://docs.oracle.com/javase/7/docs/technotes/tools/windows/jdb.html[^]
https://www.jetbrains.com/idea/help/debugging-your-first-java-application.html[^]

The debugger is here to show you what your code is doing and your task is to compare with what it should do.
When the code don't do what is expected, you are close to a bug.

You need to locate where the exception occurs on your code.
Since the debugger allow to run your program step by step, it should not be too complicated.


这篇关于.net windows app意外崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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