没有为任何调用堆栈帧加载任何符号 [英] No symbols are loaded for any call stack frame

查看:142
本文介绍了没有为任何调用堆栈帧加载任何符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我正在使用Visual Basic2010.创建了简单的Windows窗体应用程序.有一天,我按下了开始调试"按钮,并且Visual Studio抛出错误:没有为任何调用堆栈框架加载任何符号.源代码无法显示 .   例外窗口显示创建表单时发生错误.有关详细信息,请参见Exception.InnerException.  错误是:索引在数组的边界之外."

我注意到当我以起始形式编写代码时发生了错误:

           

 

私有子LED_Event_Changed(ByVal发送者作为System.Object,ByVal e作为System.EventArgs)处理_       

ComboBox_56.SelectedIndexChanged,ComboBox_63.SelectedIndexChanged,ComboBox_70.SelectedIndexChanged,ComboBox_77.SelectedIndexChanged,_

ComboBox_84.SelectedIndexChanged,ComboBox_91.SelectedIndexChanged,ComboBox_98.SelectedIndexIndex p>

ComboBox_112.SelectedIndexChanged,ComboBox_119.SelectedIndexChanged,ComboBox_126.SelectedIndexChanged,ComboBox_133.SelectedIndexChanged,_

ComboBox_140.SelectedIndexChanged,ComboBox_147.SelectedIndexChanged,ComboBox_154_SelectedIndexb      

Label_58.TextChanged,Label_65.TextChanged,Label_72.TextChanged,Label_79.TextChanged,_       

Label_86.TextChanged,Label_93.TextChanged,Label_100.TextChanged,Label_107.TextChanged,_       

Label_114.TextChanged,Label_121.TextChanged,Label_128.TextChanged,Label_135.TextChanged,_       

Label_142.TextChanged,Label_149.TextChanged,Label_156.TextChanged

将MyControl1像组合框一样

像我一样          

对于i = 56到154步骤+7          

MyControl1 = DirectCast(Me.Controls.Find("ComboBox_"& i,1)(0),ComboBox)'频道选择组合框     

下一个

结束子

如果我写那行

 MyControl1 = DirectCast(Me.Controls.Find("ComboBox_"& i,1)(0),ComboBox)

评论,问题消失了.尝试了调试和发布模式,未选中所有托管调试助手异常,无济于事.

我使用了DirectCast和 Me.Controls.Find函数多次使用之前没有任何问题.

有人有建议吗?

解决方案

首先请确保在解决方案目录中找到所有.pdb文件,然后将其删除.

然后,使用以下参考文献:

https://msdn.microsoft.com/fr-ca/library/ms241613.aspx?f=255&MSPPError=-2147217396

并确保进入vstudio首选项,并下载所有符号.请注意,下载符号选项仅在调试器运行时(调试器已附加到应用程序上)才可用.



Hello,

i am using visual basic 2010.  Created simple windows forms application. One day i pressed "start debugging" button , and visual studio threw error: No symbols are loaded for any call stack frame. the source code cannot be displayed .  Exception window show that "An error occurred creating the form. See Exception.InnerException for details.  The error is: Index was outside the bounds of the array."

I noticed that error occured when i wrote the code in the starting form:

           

Private Sub LED_Event_Changed(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles _       

ComboBox_56.SelectedIndexChanged, ComboBox_63.SelectedIndexChanged, ComboBox_70.SelectedIndexChanged, ComboBox_77.SelectedIndexChanged, _

ComboBox_84.SelectedIndexChanged, ComboBox_91.SelectedIndexChanged, ComboBox_98.SelectedIndexChanged, ComboBox_105.SelectedIndexChanged, _

ComboBox_112.SelectedIndexChanged, ComboBox_119.SelectedIndexChanged, ComboBox_126.SelectedIndexChanged, ComboBox_133.SelectedIndexChanged, _

ComboBox_140.SelectedIndexChanged, ComboBox_147.SelectedIndexChanged, ComboBox_154.SelectedIndexChanged, _       

Label_58.TextChanged, Label_65.TextChanged, Label_72.TextChanged, Label_79.TextChanged, _       

Label_86.TextChanged, Label_93.TextChanged, Label_100.TextChanged, Label_107.TextChanged, _       

Label_114.TextChanged, Label_121.TextChanged, Label_128.TextChanged, Label_135.TextChanged, _       

Label_142.TextChanged, Label_149.TextChanged, Label_156.TextChanged

Dim MyControl1 As ComboBox

Dim i As UShort             

For i = 56 To 154 Step +7           

MyControl1 = DirectCast(Me.Controls.Find("ComboBox_" & i, 1)(0), ComboBox) 'channel selection combobox       

Next

End Sub

If i write the line 

MyControl1 = DirectCast(Me.Controls.Find("ComboBox_" & i, 1)(0), ComboBox)

as comment, problem dissappears. Tried both debug and release modes, unchecked all Managed Debugged Assistant exceptions, nothing helped.

I used DirectCast and Me.Controls.Find functions many times ago without any problems.

Anybody have suggestions?

解决方案

First make sure you find all .pdb files inside your solution directory, remove them.

After that, use the following reference : 

https://msdn.microsoft.com/fr-ca/library/ms241613.aspx?f=255&MSPPError=-2147217396

And make sure to go in vstudio preferences, and download all symbols. Note that the download symbols options may only be available when the debugger is running (debugger attached to an application).



这篇关于没有为任何调用堆栈帧加载任何符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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