执行Windows应用程序时,它显示错误“已停止工作”。 [英] When executing a windows application, it shows an error saying "has stopped working"

查看:1033
本文介绍了执行Windows应用程序时,它显示错误“已停止工作”。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我创建了一个Windows应用程序,用于在VB.NET中使用reportviewer和rdlc报告显示一些图表。从另一个Windows应用程序调用此应用程序。我正在使用Citrix服务器。这在我的环境中正常工作。但当移动到具有Windows Server 2008的另一台计算机时,但它无法正常工作。第一个应用程序正在工作,我创建的内部工作不起作用。我将应用程序移动到Windows 7.也显示了相同的问题。



任何人都可以帮助我。真的很紧急。我只是申请交付背后的步骤。



提前致谢。



Sijo

Hi All,

I have created a windows application which is for showing some charts using reportviewer and rdlc reports in VB.NET. This application is invoked from another windows application. i am working on Citrix server. This is working correctly in my environment. but when moved in to another machine which has Windows Server 2008. but it is not working correctly. The first application is working bur the inner one which i have created is not working. i moved the application to windows 7. there is also the same issue is shown.

Can any one please help me. its really urgent. i am just steps behind the application delivery.

Thanks in advance.

Sijo

推荐答案





只要应用程序正在处理后台步骤,就会显示应用程序已停止工作。



我只能猜测,但是因为你正在加载图表我建议加载图表在GUI线程中完成并阻止线程发送心跳到.Net引擎,随后将应用程序视为未响应,并将应用程序报告为已停止工作到Windows,然后显示该消息。另一个原因可能是应用程序在代码中的某个地方陷入无限循环。



作为解决方案,您可以等到已停止工作 - 消息消失(它将在应用程序完成所有图表计算工作并且没有陷入无限循环之后)或重写应用程序以便在单独的线程中加载所有图表(在Google上搜索'VB.Net多线程 .com)。



欢呼

Marco
Hi,

the Application has stopped working is shown whenever an application is processing background steps.

I can only guess, but since you are loading charts I suggest that the loading of the charts is done in the GUI thread and blocks the thread from sending a heartbeat to the .Net engine, which followingly sees the application as "Not responding" and reports the app as "has stopped working" to windows, which afterwards displays the message. Another cause may be that the app is caught up in an endless loop somewhere in the code.

As solution, you can either wait until the "has stopped working"-message disappears (it will, after the app has done all the chart calc work and is not caught in an endless loop) or rewrite the app that all charts are loaded in a separate thread (Search for ''VB.Net multithreading" on Google.com).

cheers
Marco


这篇关于执行Windows应用程序时,它显示错误“已停止工作”。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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