0

I am converting programs from VB6 to VB.NET with VS2005 then to VS2010 .

This error had occured:

'xxx.exe' has encountered a problem and needs to close.

while I was running a report function in an application and caused it to terminate. I read message from event view.

It said the source was

.NET Runtime 4.0 Error Reporting, event ID: 1000 desc:Faulting application tpatoprt.exe, version 2.0.4574.21092, stamp 4ffbaa28, faulting module clr.dll, version 4.0.30319.269, stamp 4ee9ae83, debug? 0, fault address 0x0019b930.

and

.NET Runtime, event ID :1023 desc: Application: TPATOPrt.exe Framework Version: v4.0.30319 Description: The process was terminated due to an internal error in the .NET Runtime at IP 792DB930 (79140000) with exit code 80131506.

The following link just like my problem: http://4.bp.blogspot.com/_681goxWLnCg/S99AQRndqII/AAAAAAAAAfA/KQBnplFJ5-Y/fake_svchost_popup.jpg

I tried to correct in many ways..but sadly it still occurs.

4

2 回答 2

0

您将不得不假设问题与您的代码有关,除非您另有发现。Hans Passant 为您提供了指向类似问题的链接。您可能已经注意到没有人能够给出解决方案,即使这是两年前的事了。因此,您不太可能得到直接的解决方案,除非您有幸让 .NET 运行时的专家来查看您的问题。

最好的办法是让您自己尝试找出问题的根源。你有任何类型的调用堆栈吗?如果是这样,那么这将是关于发生错误的行的一个很好的线索。否则,单步调试调试器中的代码,直到找到导致错误的行。此时,您也许可以自己解决问题。但无论如何,发布导致此问题的代码行,您可能会得到更大的响应。

于 2012-07-10T06:46:03.797 回答
0

为了解决这个问题,我使用 try..catch 或 On Error GoTo ErrExit 来查找导致“xxx.exe”错误的代码部分遇到问题需要关闭。发生。然后重写代码,因为有一个或多个代码使它发生。尝试使用其他方式替换旧代码。然后再次运行,它成功了。所有错误消失。

我希望这可以帮助其他人解决问题。

于 2012-07-11T02:45:13.787 回答