开发者

How to find out cause of AppCrash?

On some machines my C# app crashes when started. How to find out what is the cause of the pr开发者_开发问答oblem? Where to start my research?

When I get managed exceptions I have nice StackTrace and exception messages so I have good start point. But in AppCrash dialog there are some weird hex numbers, I don't know what they mean.

P.S. This machines do have appropriate .NET Framework installed.

Update: I'm not talking about specific exceptions, but rather about what are common methods of fixing those. I want to learn how to do it myself and not asking on forums about every error I encounter.


I would look in the event viewer before starting looking at memory dumps etc. Many times it can be Graphic Cards drivers etc who causes the crash and the event viewer will then show what have happen.


I would suggest taking a look at windbg to analyze the crash dump.

See this article for details:
http://msdn.microsoft.com/en-us/windows/hardware/gg463009.aspx


At a blind guess I'd say you don't have the correct version of the .NET framework on the machine that is failing. Eg, you are trying to run a .net4 application on a machine where .net2 only is installed.

How about posting a screenshot/text of the error?


Have you tried windbg with crashdump option ?.

so something like adplus –crash –sc c:\myfolder\Myapp.exe

You can find more details here http://blogs.msdn.com/b/anandbms/archive/2005/04/20/410225.aspx.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜