当我调用OpenFileDialog的ShowDialog方法时,vshost32.exe停止工作 [英] vshost32.exe has stopped working when I call the ShowDialog method of OpenFileDialog

查看:53
本文介绍了当我调用OpenFileDialog的ShowDialog方法时,vshost32.exe停止工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个c#应用程序,正在对其进行最终测试.

I've a c# application, I'm doing a final test of it.

但是现在,直到现在一直有效的功能不再起作用!

But now, a function which has worked everytimes until now doesn't work anymore!

我有一个按钮,当我单击它要浏览文件时,我看到打开文件"窗口,半秒钟后,我收到了一个未捕获的Visual Studio错误:

I've a Button, when I click on it I want to browse files, I see the "Open file" windows, and an half second after, I got an uncaught visual studio error:

vshost32.exe停止工作:

vshost32.exe has stopped working:

对不起,但该错误是在法语本地化计算机上发生的:

I'm sorry but the error is happening on a french localized computer:

Signature du problème :
  Nom d’événement de problème:  APPCRASH
  Nom de l’application: TOM.vshost.exe
  Version de l’application: 10.0.30319.1
  Horodatage de l’application:  4ba2084b
  Nom du module par défaut: ntdll.dll
  Version du module par défaut: 6.1.7600.16695
  Horodateur du module par défaut:  4cc7ab44
  Code de l’exception:  c0000008
  Décalage de l’exception:  0004631f
  Version du système:   6.1.7600.2.0.0.256.48
  Identificateur de paramètres régionaux:   4108
  Information supplémentaire n° 1:  ffb6
  Information supplémentaire n° 2:  ffb61531feaa1f65f528a2694a510c22
  Information supplémentaire n° 3:  b220
  Information supplémentaire n° 4:  b2205da238309b0a025a25162a3a18f3

我的代码是:

OpenFileDialog ofd = new OpenFileDialog {Filter = Filters};
if (ofd.ShowDialog() != true) {
    return;
}

当我在ofd.ShowDialog中时,它就会崩溃.

it crash just when I'm in the ofd.ShowDialog.

这是与代码相关的问题吗?

Is this a code related issue?

您是否有关于调试的任何想法?甚至如何调试它?

Do you have any idea about how to debug? Or even how to debug this??

当激活要调试的非托管代码"时,我得到了:

When activating the "unmanaged code to be debug", I got this:

"First-chance exception at 0x77cd631f in TOM.exe: 0xC0000008: An invalid handle was specified."

堆栈跟踪是否有帮助:

>   ntdll.dll!77cd631f()    
    [Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll] 
    ntdll.dll!77d1792d()    
    ntdll.dll!77ce343b()    
    ntdll.dll!77ce2d80()    
    ole32.dll!776b4102()    
    ole32.dll!776b411e()    
    ole32.dll!7767e505()    
    SearchFolder.dll!1046b49d()     
    SearchFolder.dll!1046b267()     
    shell32.dll!76281cb7()  
    shell32.dll!761701b6()  
    shell32.dll!761991fd()  
    shell32.dll!761d61ee()  
    shell32.dll!761d6159()  
    System.ni.dll!524c4ed4()    
    shlwapi.dll!77b6b6cf()  
    ntdll.dll!77cbb428()    
    ntdll.dll!77cbe6f9()    
    kernel32.dll!77c01114()     
    ntdll.dll!77ceb429()    
    ntdll.dll!77ceb3fc()    

我尝试过的一些事情:

一个重要的新观点:在没有Visual Studio的情况下运行错误似乎没有发生(这似乎是逻辑的)

An important new point: It seems that the error doesn't happen when I run it without visual studio(which seems to be logic)

重要点bis :似乎相同的代码正在另一台计算机的Visual Studio中工作(这是完全相同的,并且发出相同的Windows图像

Important point bis: It seems the same code is working in visual studio of another computer(which is exactly the same and issued of the same image of windows

我试图删除所有文件并执行GetLatest,但仍然无法正常工作

I tried to remove all files and do a GetLatest, but still doesn't work

推荐答案

我刚刚重新安装了这台计算机的映像,该映像在安装后已经完成,现在可以正常工作了:/.很奇怪

I just re-installed the image of this computer that have I done after the installation and now it works :/. Very strange

这篇关于当我调用OpenFileDialog的ShowDialog方法时,vshost32.exe停止工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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