MFC应用程序已停止工作 [英] MFC application has stopped working

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

问题描述


我有一个应用程序    .exe使用VS6在vc ++中开发。当我在 Windows
Server 2008
,它运行成功。但有时它会给出错误"MFC应用程序已停止工作"。

I have an application   .exe developed in vc++ using VS6. When I run this application onWindows Server 2008, , it runs successfully. But sometimes it gives error "MFC application has stopped working".


在与访问数据库建立本地ODBC连接之前。然后我们将databsae移动到另一个的SQL服务器上。我们网络中的设备。移动到ODBC连接到SQL服务器之后正好启动这些异常。

Before it had a local ODBC connection to an access database. Then we moved the databsae to SQL server on another  device in our network. Exactly after movement to ODBC connection to SQL server these exceptions are started.


相同的应用程序适用于  Windows
Server 2003
  with SQL Server。

The same application works well on Windows Server 2003 with SQL Server.


我不能在服务器设备上调试它,我无法在开发环境中创建问题ronment。 

I can't debug it on the server device and I can't create the problem in development environment. 


以下是问题的详细信息:

Below is the details of problem:


... MFC应用程序已停止工作 

...MFC application has stopped working 


问题事件名称:  APPCRASH







例外代码:  c0000005

异常抵消:  00007110

OSVersion:  6.0.6001.2。 1.0.274.10

本地ID:   1033

附加信息1:   39e0

附加信息2:  65cce9ce936de166a1d29317dfbb2a97

附加信息3:4125

附加信息4:a616c3c437f7736425b659aba75ebb27

Problem Event Name:  APPCRASH
.
.
.
Exception Code:  c0000005
Exception Offset:  00007110
OSVersion:  6.0.6001.2.1.0.274.10
Local ID:   1033
Additional Information 1:   39e0
Additional Information 2:  65cce9ce936de166a1d29317dfbb2a97
Additional Information 3: 4125
Additional Information 4:  a616c3c437f7736425b659aba75ebb27

这方面的任何帮助都会受到影响。

谢谢

推荐答案

嗨Sayena,

Hi Sayena,

感谢您在此处发帖。

>>在拥有本地ODBC连接之前然后我们将databsae移动到我们网络中另一个设备上的SQL服务器。正好在移动到ODBC服务器连接到SQL服务器后,这些例外就开始了。

相同的应用程序在带有SQL Server的Windows Server 2003上运行良好。

我无法在服务器设备上调试它,我无法创建开发环境中的问题。

对于这种情况,你可以使用_CrtSetDbgFlag()来启用一堆有用的堆调试技术。

For this case, you could use _CrtSetDbgFlag() to enable a bunch of useful heap debugging techniques.

这是一份供你参考的文件。

Here is a document for you as a reference.

https://msdn.microsoft.com/en-us/library/x98tx3cf.asp x

此外,vc 6.0太旧了,现在已不再支持了。请尝试更新您的vs,然后重试。

Besides, the vc 6.0 is too old that is out of support now. Please try to update your vs and try again.

https://www.visualstudio.com/下载/

您的理解与合作将不胜感激。

Your understanding and cooperation will be grateful.

最诚挚的问候,

Baron Bi


这篇关于MFC应用程序已停止工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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