この共通の問題のオブジェクトのインスタンスを作成しませんプロンプトが見て非常に良いですが、なぜこの私は本当に知らない
我々はマシンの数に実行するために、独自のプログラムを書くことができない問題が発生していません。
私は私の開発環境について話
Win10システム、vs2013、私の世代だけでなく、実際には、.NET2.0フレームワークであるターゲットマシンに試してみましたが、.NETの適切なバージョンがインストール2.0,3.5,4.0,4.5で解決することはできません問題
と2つのコンピュータシステムの現在の状況は、問題のwin7のであり、エラーコードが同じ行であります
1
2
3
4
5
|
private
void
cbB_JmpFreq_SelectedIndexChanged(
object
sender, EventArgs e)
{
RadioInfoDat.JmpFreq = cbB_JmpFreq.SelectedIndex;
//问题代码是这一行,就是这一行,只有这一行
}
|
私は何をすることはWinフォームのプログラムです。私たちが書かれていると信じてのSelectedIndexChangedイベントは、私は他のコントロールの内容は、そのような方法が、唯一のエラーエラーこのラインでのSelectedIndexChanged。これはなぜでしょうか?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
有关调用实时(JIT)调试而不是此对话框的详细信息,
请参见此消息的结尾。
************** 异常文本 **************
System.NullReferenceException: 未将对象引用设置到对象的实例。
在 CPS_NoneDisplay.FormRadioInformation.cbB_JmpFreq_SelectedIndexChanged(Object sender, EventArgs e) 位置 e:\Project\MYT-390\13_SW_Resource\CCTX-618\CPS_NoneDisplay\FormRadioInformation.cs:行号 636
在 System.Windows.Forms.Control.OnMarginChanged(EventArgs e)
在 System.Windows.Forms.Control.set_Margin(Padding value)
在 System.Windows.Forms.Control.ScaleControl(SizeF factor, BoundsSpecified specified)
在 System.Windows.Forms.ComboBox.ScaleControl(SizeF factor, BoundsSpecified specified)
在 System.Windows.Forms.Control.ScaleControl(SizeF includedFactor, SizeF excludedFactor, Control requestingControl)
在 System.Windows.Forms.Control.Scale(SizeF includedFactor, SizeF excludedFactor, Control requestingControl)
在 System.Windows.Forms.Control.ScaleChildControls(SizeF includedFactor, SizeF excludedFactor, Control requestingControl)
在 System.Windows.Forms.Control.Scale(SizeF includedFactor, SizeF excludedFactor, Control requestingControl)
在 System.Windows.Forms.ContainerControl.OnChildLayoutResuming(Control child, Boolean performLayout)
在 System.Windows.Forms.Control.OnLayoutResuming(Boolean performLayout)
在 System.Windows.Forms.Control.ResumeLayout(Boolean performLayout)
在 CPS_NoneDisplay.FormRadioInformation.InitializeComponent() 位置 e:\Project\MYT-390\13_SW_Resource\CCTX-618\CPS_NoneDisplay\FormRadioInformation.Designer.cs:行号 214
在 CPS_NoneDisplay.FormRadioInformation..[code=csharp]
|