的Visual Studio 2012专业错误svhost32.exe运行的Hello World [英] Visual Studio Professional 2012 svhost32.exe error running hello world

查看:236
本文介绍了的Visual Studio 2012专业错误svhost32.exe运行的Hello World的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新的Microsoft Visual Studio和刚刚安装了Visual Studio 2012我的电脑上。我想运行一个简单的Hello World控制台应用程序。这是我的代码:

 使用系统; 


命名空间的HelloWorld
{
类节目
{
静态无效的主要(字串[] args)
{
Console.WriteLine(你好,世界!);
}
}
}

当我运行这个无论是对调试或释放正确显示的Hello World在控制台中,但随后迅速给了我这个错误信息:vshost32.exe已停止工作研究这个问题后,我想出如何进入属性,清除启用在Visual Studio宿主进程这是什么似乎解决问题为其他人。但后来当我尝试运行代码再次我得到的是的HelloWorld已停止工作。有没有人有什么我可以尝试下什么想法?对于这个问题大多数解决方案已经在人们的代码错误,这样做,但似乎有点困难的,因为它的Hello World想象。



在启用本地代码调试,这是我得到的错误信息:0xC0000008:




第一次机会在0x77e3f9f2 HelloWorld.exe的中除指定了无效的句柄。

这是调用栈

  NTDLL> .DLL!77e3f9f2()
[相框下面可能不正确和/或缺失,无符号加载ntdll.dll中]
ntdll.dll中!77e3f9f2()
KernelBase.dll!76dbc455( )
kernel32.dll中!76cb1408()
AME_OutlookSensor.dll!74b8c60d()
AME_OutlookSensor.dll!74b78ecb()
AME_OutlookSensor.dll!74b78f9e()
AME_OutlookSensor .DLL!74b741d4()
AME_OutlookSensor.dll!74b7432f()
AME_OutlookSensor.dll!74b7439a()
ntdll.dll中!77e599a0()
ntdll.dll中!77e6d702()
ntdll.dll中!77e6d5a4()
kernel32.dll中!76cb79c5()
mscoreei.dll!706f3712()
mscoreei.dll!706e3126()
mscoreei。 DLL!706e3216()
mscoreei.dll!706e48ef()
mscoreei.dll!706e4928()
mscoreei.dll!706e47b0()
mscoreei.dll!706e48a2()
mscoreei.dll!706e48be()
clr.dll!701f2e27()
kernel32.dll中!76cb1408()
AME_OutlookSensor.dll!74b8c60d()
AME_OutlookSensor.dll !74b78ecb()
AME_OutlookSensor.dll!74b78f9e()
AME_OutlookSensor.dll!74b741d4()
AME_OutlookSensor.dll!74b7432f()
AME_OutlookSensor.dll!74b7439a()
NTDLL.DLL!77e599a0()
ntdll.dll中!77e6d702()
ntdll.dll中!77e6d5a4()
kernel32.dll中!76cb79c5()
mscoreei.dll! 706f3712()
mscoreei.dll!706e3126()
mscoreei.dll!706e3216()
mscoreei.dll!706e48ef()
mscoreei.dll!706e4928()
mscoreei.dll!706e47b0()
mscoreei.dll!706e48a2()
mscoreei.dll!706e48be()
clr.dll!701f2e27()
AME_OutlookSensor.dll!74b8c60d ()
AME_OutlookSensor.dll!74b78ecb()
AME_OutlookSensor.dll!74b78f9e()
AME_OutlookSensor.dll!74b741d4()
AME_OutlookSensor.dll!74b7432f()
AME_OutlookSensor.dll!74b7439a()
ntdll.dll中!77e599a0()
ntdll.dll中!77e6d702()
ntdll.dll中!77e6d5a4()
kernel32.dll中!76cb79c5( )
mscoreei.dll!706f3712()
mscoreei.dll!706e3126()
mscoreei.dll!706e3216()
mscoreei.dll!706e48ef()
mscoreei .dll文件!706e4928()
mscoreei.dll!706e47b0()
mscoreei.dll!706e48a2()
mscoreei.dll!706e48be()
clr.dll!701f2e27()
AME_OutlookSensor.dll!74b78ecb()
AME_OutlookSensor.dll!74b78f9e()
AME_OutlookSensor.dll!74b741d4()
AME_OutlookSensor.dll!74b7432f()
AME_OutlookSensor。 dll的!74b7439a()
ntdll.dll中!77e599a0()
ntdll.dll中!77e6d702()
ntdll.dll中!77e6d5a4()
kernel32.dll中!76cb79c5()
mscoreei.dll!706f3712()
mscoreei.dll!706e3126()
mscoreei.dll!706e3216()
mscoreei.dll!706e48ef()
mscoreei.dll !706e4928()
mscoreei.dll!706e47b0()
mscoreei.dll!706e48a2()
mscoreei.dll!706e48be()
clr.dll!701f2e27()
AME_OutlookSensor.dll!74b78f9e()
AME_OutlookSensor.dll!74b741d4()
AME_OutlookSensor.dll!74b7432f()
AME_OutlookSensor.dll!74b7439a()
ntdll.dll中! 77e599a0()
ntdll.dll中!77e6d702()
ntdll.dll中!77e6d5a4()
kernel32.dll中!76cb79c5()
mscoreei.dll!706f3712()
mscoreei.dll!706e3126()
mscoreei.dll!706e3216()
mscoreei.dll!706e48ef()
mscoreei.dll!706e4928()
mscoreei.dll!706e47b0 ()
mscoreei.dll!706e48a2()
mscoreei.dll!706e48be()
clr.dll!701f2e27()
AME_OutlookSensor.dll!74b7432f()
AME_OutlookSensor.dll!74b7439a()
ntdll.dll中!77e599a0()
ntdll.dll中!77e6d702()
ntdll.dll中!77e6d5a4()
kernel32.dll中!76cb79c5( )
mscoreei.dll!706f3712()
mscoreei.dll!706e3126()
mscoreei.dll!706e3216()
mscoreei.dll!706e48ef()
mscoreei .dll文件!706e4928()
mscoreei.dll!706e47b0()
mscoreei.dll!706e48a2()
mscoreei.dll!706e48be()
clr.dll!701f2e27()
AME_OutlookSensor.dll!74b7439a()
ntdll.dll中!77e599a0()
ntdll.dll中!77e6d702()
ntdll.dll中!77e6d5a4()
KERNEL32。 DLL!76cb79c5()
mscoreei.dll!706f3712()
mscoreei.dll!706e3126()
mscoreei.dll!706e3216()
mscoreei.dll!706e48ef()
mscoreei.dll!706e4928()
mscoreei.dll!706e47b0()
mscoreei.dll!706e48a2()
mscoreei.dll!706e48be()
clr.dll !701f2e27()
ntdll.dll中!77e599a0()
ntdll.dll中!77e6d702()
ntdll.dll中!77e6d5a4()
kernel32.dll中!76cb79c5()
mscoreei.dll!706f3712()
mscoreei.dll!706e3126()
mscoreei.dll!706e3216()
mscoreei.dll!706e48ef()
mscoreei.dll! 706e4928()
mscoreei.dll!706e47b0()
mscoreei.dll!706e48a2()
mscoreei.dll!706e48be()
clr.dll!701f2e27()
NTDLL.DLL!77e6d702()
ntdll.dll中!77e6d5a4()
kernel32.dll中!76cb79c5()
mscoreei.dll!706f3712()
mscoreei.dll!706e3126 ()
mscoreei.dll!706e3216()
mscoreei.dll!706e48ef()
mscoreei.dll!706e4928()
mscoreei.dll!706e47b0()
mscoreei.dll!706e48a2()
mscoreei.dll!706e48be()
clr.dll!701f2e27()
ntdll.dll中!77e6d5a4()
kernel32.dll中!76cb79c5( )
mscoreei.dll!706f3712()
mscoreei.dll!706e3126()
mscoreei.dll!706e3216()
mscoreei.dll!706e48ef()
mscoreei .dll文件!706e4928()
mscoreei.dll!706e47b0()
mscoreei.dll!706e48a2()
mscoreei.dll!706e48be()
clr.dll!701f2e27()
kernel32.dll中!76cb79c5()
mscoreei.dll!706f3712()
mscoreei.dll!706e3126()
mscoreei.dll!706e3216()
mscoreei。 DLL!706e48ef()
mscoreei.dll!706e4928()
mscoreei.dll!706e47b0()
mscoreei.dll!706e48a2()
mscoreei.dll!706e48be()
clr.dll!701f2e27()
mscoreei.dll!706f3712()
mscoreei.dll!706e3126()
mscoreei.dll!706e3216()
mscoreei.dll !706e48ef()
mscoreei.dll!706e4928()
mscoreei.dll!706e47b0()
mscoreei.dll!706e48a2()
mscoreei.dll!706e48be()
clr.dll!701f2e27()
mscoreei.dll!706f38c4()
clr.dll!701f2e27()
clr.dll!701f2e27()
clr.dll! 701f2daa()
clr.dll!701901df()
clr.dll!70190226()
clr.dll!7016c3d2()
mscoreei.dll!706ef5a3()
MSCOREE.DLL!70767f16()
mscoree.dll中!70764de3()
kernel32.dll中!76cb336a()
ntdll.dll中!77e59f72()
ntdll.dll中!77e59f45 ()

这是继获取微软符号的建议后,新的堆栈的呼叫。

  ntdll.dll!_ZwClose@4()+ 0×12字节
ntdll.dll!_ZwClose@4()+ 0×12字节
AME_OutlookSensor.dll!74b8c60d()
[以下帧可能不正确和/或缺失,没有加载AME_OutlookSensor.dll符号]
AME_OutlookSensor.dll!74b78ecb()
AME_OutlookSensor。 DLL!74b78f9e()
AME_OutlookSensor.dll!74b741d4()
AME_OutlookSensor.dll!74b7432f()
AME_OutlookSensor.dll!74b7439a()
ntdll.dll!_LdrpCallInitRoutine@16( )+ 0×14字节
ntdll.dll!_LdrShutdownProcess@0()+ 0x141字节
ntdll.dll!_RtlExitUserProcess@4()+ 0x74字节
kernel32.dll中!76cb79c5()
mscoreei.dll!RuntimeDesc :: ShutdownAllActiveRuntimes()+ 0x10e字节
mscoreei.dll!CLRRuntimeHostInternalImpl :: ShutdownAllRuntimesThenExit()+ 0x13字节
clr.dll!EEPolicy :: ExitProcessViaShim()+ 0x65字节
clr.dll SafeExitProcess()+ 0x7d字节
clr.dll DisableRuntime() - !0xce069字节
clr.dll EEPolicy :: HandleExitProcess()+的0x42字节
clr.dll !__ CorExeMainInternal @ 0()+ 0xf2字节
clr.dll!__ CorExeMain @ 0()+为0x1c字节
mscoreei.dll!__ CorExeMain @ 0()+ 0x71字节
MSCorEE.dll中!_ShellShim__CorExeMain @ 0()+ 0x227字节
mscoree.dll中!__ CorExeMain_Exported @ 0()+,位于0x8字节
ntdll.dll中!___ RtlUserThreadStart @ 8()+ 0×27字节
ntdll.dll!__RtlUserThreadStart@8 ()+ 0x1b字节


解决方案

我是看着你的筹码跟踪我就拿那个跳出我的东西是错的第一行。




[相框下面可能是不正确的和/或缺失, /:没有加载ntdll.dll中]




我搜索谷歌和找到了答案,上的 [相框下面可能不正确和/或缺失,没有加载ntdll.dll中的符号]



我不知道这是否会工作,或者如果你需要经过并尝试加载调试符号这样的答案建议



我试图运行使用VS2010我的机器在这个完全相同的代码,也没有问题。


I am new to Microsoft Visual Studio and have just installed Visual Studio 2012 on my computer. I am trying to run a simple hello world console application. This is my code:

using System;


namespace HelloWorld
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello, World!");
        }
    }
}

when I run this either for debug or release it correctly displays the hello world in the console but then promptly gives me this error message: "vshost32.exe has stopped working" after researching the problem I figured out how to go into properties and unselect "Enable the visual Studio hosting process" which is what seemed to fix the problem for other people. But then when I try to run the code again all I get is "HelloWorld has stopped working". Does anyone have any ideas of what I could try next? Most solutions for this problem had to do with errors in peoples code but that seems a little hard to imagine since its hello world.

when I enable native code debugging this is the error message that I get:

First-chance exception at 0x77e3f9f2 in HelloWorld.exe: 0xC0000008: An invalid handle was specified.

This is the Call Stack

ntdll.dll!77e3f9f2()    
[Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll] 
ntdll.dll!77e3f9f2()    
KernelBase.dll!76dbc455()   
kernel32.dll!76cb1408()     
AME_OutlookSensor.dll!74b8c60d()    
AME_OutlookSensor.dll!74b78ecb()    
AME_OutlookSensor.dll!74b78f9e()    
AME_OutlookSensor.dll!74b741d4()    
AME_OutlookSensor.dll!74b7432f()    
AME_OutlookSensor.dll!74b7439a()    
ntdll.dll!77e599a0()    
ntdll.dll!77e6d702()    
ntdll.dll!77e6d5a4()    
kernel32.dll!76cb79c5()     
mscoreei.dll!706f3712()     
mscoreei.dll!706e3126()     
mscoreei.dll!706e3216()     
mscoreei.dll!706e48ef()     
mscoreei.dll!706e4928()     
mscoreei.dll!706e47b0()     
mscoreei.dll!706e48a2()     
mscoreei.dll!706e48be()     
clr.dll!701f2e27()  
kernel32.dll!76cb1408()     
AME_OutlookSensor.dll!74b8c60d()    
AME_OutlookSensor.dll!74b78ecb()    
AME_OutlookSensor.dll!74b78f9e()    
AME_OutlookSensor.dll!74b741d4()    
AME_OutlookSensor.dll!74b7432f()    
AME_OutlookSensor.dll!74b7439a()    
ntdll.dll!77e599a0()    
ntdll.dll!77e6d702()    
ntdll.dll!77e6d5a4()    
kernel32.dll!76cb79c5()     
mscoreei.dll!706f3712()     
mscoreei.dll!706e3126()     
mscoreei.dll!706e3216()     
mscoreei.dll!706e48ef()     
mscoreei.dll!706e4928()     
mscoreei.dll!706e47b0()     
mscoreei.dll!706e48a2()     
mscoreei.dll!706e48be()     
clr.dll!701f2e27()  
AME_OutlookSensor.dll!74b8c60d()    
AME_OutlookSensor.dll!74b78ecb()    
AME_OutlookSensor.dll!74b78f9e()    
AME_OutlookSensor.dll!74b741d4()    
AME_OutlookSensor.dll!74b7432f()    
AME_OutlookSensor.dll!74b7439a()    
ntdll.dll!77e599a0()    
ntdll.dll!77e6d702()    
ntdll.dll!77e6d5a4()    
kernel32.dll!76cb79c5()     
mscoreei.dll!706f3712()     
mscoreei.dll!706e3126()     
mscoreei.dll!706e3216()     
mscoreei.dll!706e48ef()     
mscoreei.dll!706e4928()     
mscoreei.dll!706e47b0()     
mscoreei.dll!706e48a2()     
mscoreei.dll!706e48be()     
clr.dll!701f2e27()  
AME_OutlookSensor.dll!74b78ecb()    
AME_OutlookSensor.dll!74b78f9e()    
AME_OutlookSensor.dll!74b741d4()    
AME_OutlookSensor.dll!74b7432f()    
AME_OutlookSensor.dll!74b7439a()    
ntdll.dll!77e599a0()    
ntdll.dll!77e6d702()    
ntdll.dll!77e6d5a4()    
kernel32.dll!76cb79c5()     
mscoreei.dll!706f3712()     
mscoreei.dll!706e3126()     
mscoreei.dll!706e3216()     
mscoreei.dll!706e48ef()     
mscoreei.dll!706e4928()     
mscoreei.dll!706e47b0()     
mscoreei.dll!706e48a2()     
mscoreei.dll!706e48be()     
clr.dll!701f2e27()  
AME_OutlookSensor.dll!74b78f9e()    
AME_OutlookSensor.dll!74b741d4()    
AME_OutlookSensor.dll!74b7432f()    
AME_OutlookSensor.dll!74b7439a()    
ntdll.dll!77e599a0()    
ntdll.dll!77e6d702()    
ntdll.dll!77e6d5a4()    
kernel32.dll!76cb79c5()     
 mscoreei.dll!706f3712()    
mscoreei.dll!706e3126()     
mscoreei.dll!706e3216()     
mscoreei.dll!706e48ef()     
mscoreei.dll!706e4928()     
mscoreei.dll!706e47b0()     
mscoreei.dll!706e48a2()     
mscoreei.dll!706e48be()     
clr.dll!701f2e27()  
AME_OutlookSensor.dll!74b7432f()    
AME_OutlookSensor.dll!74b7439a()    
ntdll.dll!77e599a0()    
ntdll.dll!77e6d702()    
ntdll.dll!77e6d5a4()    
kernel32.dll!76cb79c5()     
mscoreei.dll!706f3712()     
mscoreei.dll!706e3126()     
mscoreei.dll!706e3216()     
mscoreei.dll!706e48ef()     
mscoreei.dll!706e4928()     
mscoreei.dll!706e47b0()     
mscoreei.dll!706e48a2()     
mscoreei.dll!706e48be()     
clr.dll!701f2e27()  
AME_OutlookSensor.dll!74b7439a()    
ntdll.dll!77e599a0()    
ntdll.dll!77e6d702()    
ntdll.dll!77e6d5a4()    
kernel32.dll!76cb79c5()     
mscoreei.dll!706f3712()     
mscoreei.dll!706e3126()     
mscoreei.dll!706e3216()     
mscoreei.dll!706e48ef()     
mscoreei.dll!706e4928()     
mscoreei.dll!706e47b0()     
mscoreei.dll!706e48a2()     
mscoreei.dll!706e48be()     
clr.dll!701f2e27()  
ntdll.dll!77e599a0()    
ntdll.dll!77e6d702()    
ntdll.dll!77e6d5a4()    
kernel32.dll!76cb79c5()     
mscoreei.dll!706f3712()     
mscoreei.dll!706e3126()     
mscoreei.dll!706e3216()     
mscoreei.dll!706e48ef()     
mscoreei.dll!706e4928()     
mscoreei.dll!706e47b0()     
mscoreei.dll!706e48a2()     
mscoreei.dll!706e48be()     
clr.dll!701f2e27()  
ntdll.dll!77e6d702()    
ntdll.dll!77e6d5a4()    
kernel32.dll!76cb79c5()     
mscoreei.dll!706f3712()     
mscoreei.dll!706e3126()     
mscoreei.dll!706e3216()     
mscoreei.dll!706e48ef()     
mscoreei.dll!706e4928()     
mscoreei.dll!706e47b0()     
mscoreei.dll!706e48a2()     
mscoreei.dll!706e48be()     
clr.dll!701f2e27()  
ntdll.dll!77e6d5a4()    
kernel32.dll!76cb79c5()     
mscoreei.dll!706f3712()     
mscoreei.dll!706e3126()     
mscoreei.dll!706e3216()     
mscoreei.dll!706e48ef()     
mscoreei.dll!706e4928()     
mscoreei.dll!706e47b0()     
mscoreei.dll!706e48a2()     
mscoreei.dll!706e48be()     
clr.dll!701f2e27()  
kernel32.dll!76cb79c5()     
mscoreei.dll!706f3712()     
mscoreei.dll!706e3126()     
mscoreei.dll!706e3216()     
mscoreei.dll!706e48ef()     
mscoreei.dll!706e4928()     
mscoreei.dll!706e47b0()     
mscoreei.dll!706e48a2()     
mscoreei.dll!706e48be()     
clr.dll!701f2e27()  
mscoreei.dll!706f3712()     
mscoreei.dll!706e3126()     
mscoreei.dll!706e3216()     
mscoreei.dll!706e48ef()     
mscoreei.dll!706e4928()     
mscoreei.dll!706e47b0()     
mscoreei.dll!706e48a2()     
mscoreei.dll!706e48be()     
clr.dll!701f2e27()  
mscoreei.dll!706f38c4()     
clr.dll!701f2e27()  
clr.dll!701f2e27()  
clr.dll!701f2daa()  
clr.dll!701901df()  
clr.dll!70190226()  
clr.dll!7016c3d2()  
mscoreei.dll!706ef5a3()     
mscoree.dll!70767f16()  
mscoree.dll!70764de3()  
kernel32.dll!76cb336a()     
ntdll.dll!77e59f72()    
ntdll.dll!77e59f45()    

this is the new stack call after following the suggestions for getting symbols from microsoft.

ntdll.dll!_ZwClose@4()  + 0x12 bytes    
ntdll.dll!_ZwClose@4()  + 0x12 bytes    
AME_OutlookSensor.dll!74b8c60d()    
[Frames below may be incorrect and/or missing, no symbols loaded for AME_OutlookSensor.dll] 
AME_OutlookSensor.dll!74b78ecb()    
AME_OutlookSensor.dll!74b78f9e()    
AME_OutlookSensor.dll!74b741d4()    
AME_OutlookSensor.dll!74b7432f()    
AME_OutlookSensor.dll!74b7439a()    
ntdll.dll!_LdrpCallInitRoutine@16()  + 0x14 bytes   
ntdll.dll!_LdrShutdownProcess@0()  + 0x141 bytes    
ntdll.dll!_RtlExitUserProcess@4()  + 0x74 bytes 
kernel32.dll!76cb79c5()     
mscoreei.dll!RuntimeDesc::ShutdownAllActiveRuntimes()  + 0x10e bytes    
mscoreei.dll!CLRRuntimeHostInternalImpl::ShutdownAllRuntimesThenExit()  + 0x13  bytes   
clr.dll!EEPolicy::ExitProcessViaShim()  + 0x65 bytes    
clr.dll!SafeExitProcess()  + 0x7d bytes 
clr.dll!DisableRuntime()  - 0xce069 bytes   
clr.dll!EEPolicy::HandleExitProcess()  + 0x42 bytes 
clr.dll!__CorExeMainInternal@0()  + 0xf2 bytes  
clr.dll!__CorExeMain@0()  + 0x1c bytes  
mscoreei.dll!__CorExeMain@0()  + 0x71 bytes 
mscoree.dll!_ShellShim__CorExeMain@0()  + 0x227 bytes   
mscoree.dll!__CorExeMain_Exported@0()  + 0x8 bytes  
ntdll.dll!___RtlUserThreadStart@8()  + 0x27 bytes   
ntdll.dll!__RtlUserThreadStart@8()  + 0x1b bytes    

解决方案

I was looking at your stack trace and I took the first line that jumped out at me as something was wrong.

[Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll]

I searched Google and found the answer to the Question on [Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll]

I don't know if this will work or if you need to go through and try to load the Debugging symbols like this answer suggests

I tried to run this exact same code on my machine using VS2010 and had no issues.

这篇关于的Visual Studio 2012专业错误svhost32.exe运行的Hello World的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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