我的应用程序随机崩溃 [英] My application crashing randomly

查看:118
本文介绍了我的应用程序随机崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我开发了一个声音播放的软件,可以继续白天和晚上玩(客户要求)。我也可以从主要创建多个实例播放器。我用它制作了这个软件Visual Studio 2010和.Net framework 4.0。我的应用实例
在1天到10天之后逐个崩溃。

I developed a sound Playing  software that continue to play all day and night(client requirement).Also I can create multiple instances from the main player. I use for made this software Visual studio 2010 and .Net framework 4.0. My application instances crashing after 1 days to 10 days one by one.

         经过一些R& D  我们从微软获得了一些信息 论坛 &bbsp。
.Net framework 4上出现了一些问题。
 他们建议安装更新的" NDP40-KB982638-x64.exe"。或者"NDP40-KB982638-x86.exe".I
安装更新,但仍然在我的Windows 7机器上发生了一些崩溃问题(32位和64位)。我在大约2个月后遇到了这个问题。客户对我的压力立即关闭项目。请告诉我该怎么办?

          After some R&D we have got some information from Microsoft forum that some problem arise on .Net framework 4. They suggested to install an updated "NDP40-KB982638-x64.exe" or "NDP40-KB982638-x86.exe".I install the update but still some crashing problem occurring on my windows 7 machine(both 32 and 64 bit).I have stuck with this problem near about 2 months.Client pressurized  to me immediate close the project.Please suggest me what can i do?

           在崩溃我的应用程序后,我还更新了一些崩溃报告,它显示在屏幕下方。

            I also have update some crashing report after crashing my application it show below screen.

推荐答案

嗯,异常代码是EXCEPTION_ACCESS_VIOLATION。这意味着您的应用程序试图访问从未分配过或已经被释放的内存。

Well, the exception code is EXCEPTION_ACCESS_VIOLATION. That means your application tried to access memory that has never been allocated or has already been deallocated.

这种情况的常见原因是使用未初始化的指针或引用,使用空指针或使用指针或者在其引用的内存之后的引用已被解除分配。内存损坏也可能会覆盖指针或引用。

Common causes for this are using an uninitialized pointer or reference, using a null pointer or using a pointer or reference after the memory it refers to has been deallocated. There is also the possibility of memory corruption overwriting a pointer or reference.

不幸的是,你唯一能做的就是调试。如果你在应用程序崩溃后调试应用程序(称为事后调试),那么它应该将你带到代码中崩溃的位置,这样你就可以看到变量的值是什么。

Unfortunately, the only thing you can do is to debug. If you debug the application after it has crashed (called post mortem debugging), then it should take you to the point in your code where it crashed so you can see what the values of variables are.


这篇关于我的应用程序随机崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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