デバッグできない問題が発生しています。
ボタンを押すと、次のような別のフォームが開くフォームがあります。
wfrmBkrShotefHitpalgutNechasim_Perut.Close()
wfrmBkrShotefHitpalgutNechasim_Perut.Text = pPageHeader
wfrmBkrShotefHitpalgutNechasim_Perut.kerenGUID = KodKeren
wfrmBkrShotefHitpalgutNechasim_Perut.TaarichNechonut = Taarich
wfrmBkrShotefHitpalgutNechasim_Perut.SugHitpalgut = MisHitpalgut
wfrmBkrShotefHitpalgutNechasim_Perut.KodKvutzatHitpalgut = cm.Current("Kod").ToString
wfrmBkrShotefHitpalgutNechasim_Perut.MdiParent = Me.MdiParent
wfrmBkrShotefHitpalgutNechasim_Perut.Show()
新しいフォームのすべてのロードを正しく実行し、それが終了した後、失敗した場合はショーを実行します。
私が受け取るメッセージ例外は次のとおりです。アイテムは既に追加されています。辞書のキー: 'kod' 追加されるキー: 'kod'
どのリスト/辞書について話しているのかわかりません。例外の詳細を調べたところ、次のことがわかりました。
**System.ArgumentException =** {"Item has already been added. Key in dictionary: 'kod' Key being added: 'kod'"}
**Data =** {System.Collections.ListDictionaryInternal}
**Values =** {System.Collections.ListDictionaryInternal.NodeKeyValueCollection}
**Keys =** {System.Collections.ListDictionaryInternal.NodeKeyValueCollection}
**Source:** "mscorlib"
**StackTrace =** at System.Collections.SortedList.Add(Object key, Object value) at
Syncfusion.Windows.Forms.Grid.Grouping.GridColumnDescriptorCollection.EnsureSortedList()
at
Syncfusion.Windows.Forms.Grid.Grouping.GridColumnDescriptorCollection.Find(String
name) at
Syncfusion.Windows.Forms.Grid.Grouping.GridColumnDescriptorCollection.get_Item(String
name) at
Syncfusion.Windows.Forms.Grid.Grouping.GridTableDescriptor.EnsureRecordRowColumns()
at
Syncfusion.Windows.Forms.Grid.Grouping.GridTableDescriptor.get_RecordRowColumns()
at
Syncfusion.Windows.Forms.Grid.Grouping.GridTableDescriptor.GetColumnSetColCount()
at
Syncfusion.Windows.Forms.Grid.Grouping.GridTableModelVolatileData.get_ColCount()
at Syncfusion.Windows.Forms.Grid.GridModel.get_ColCount() at
Syncfusion.Windows.Forms.Grid.GridScroll.GetMaxColScrollPosition()
at
Syncfusion.Windows.Forms.Grid.GridScroll.ColIndexToScrollPosition(Int32
colIndex) at
Syncfusion.Windows.Forms.Grid.GridScroll.GetNextColIndex(Int32&
colIndex, Boolean skipFirstHidden) at
Syncfusion.Windows.Forms.Grid.GridScroll.GetNextColIndex(Int32
colIndex, Boolean skipFirstHidden) at
Syncfusion.Windows.Forms.Grid.GridControlBase.GetFirstScrollableCol()
at Syncfusion.Windows.Forms.Grid.GridControlBase.Initialize() at
Syncfusion.Windows.Forms.Grid.Grouping.GridTableControl.Initialize()
at
Syncfusion.Windows.Forms.Grid.Grouping.GridGroupingControl.OptimizeLoadTime()
at
Syncfusion.Windows.Forms.Grid.Grouping.GridGroupingControl.f_Load(Object
sender, EventArgs e) at System.EventHandler.Invoke(Object sender,
EventArgs e) at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl() at
System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl() at
System.Windows.Forms.Control.WmShowWindow(Message& m) at
System.Windows.Forms.Control.WndProc(Message& m) at
System.Windows.Forms.ScrollableControl.WndProc(Message& m) at
System.Windows.Forms.ContainerControl.WndProc(Message& m) at
System.Windows.Forms.Form.WmShowWindow(Message& m) at
System.Windows.Forms.Form.WndProc(Message& m) at
Syncfusion.Windows.Forms.Office2007Form.WndProc(Message& m) at
System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&
m) at
System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd,
Int32 msg, IntPtr wparam, IntPtr lparam) at
System.Windows.Forms.UnsafeNativeMethods.IntCreateWindowEx(Int32
dwExStyle, String lpszClassName, String lpszWindowName, Int32 style,
Int32 x, Int32 y, Int32 width, Int32 height, HandleRef hWndParent,
HandleRef hMenu, HandleRef hInst, Object pvParam) at
System.Windows.Forms.UnsafeNativeMethods.CreateWindowEx(Int32
dwExStyle, String lpszClassName, String lpszWindowName, Int32 style,
Int32 x, Int32 y, Int32 width, Int32 height, HandleRef hWndParent,
HandleRef hMenu, HandleRef hInst, Object pvParam) at
System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp) at
System.Windows.Forms.Control.CreateHandle() at
System.Windows.Forms.Form.CreateHandle() at
System.Windows.Forms.Control.get_Handle() at
System.Windows.Forms.Form.SetVisibleCore(Boolean value) at
System.Windows.Forms.Control.Show() at
Elad.BakaratNeemanut.UI.wfrmBkrShotefHitpalgutNechasim.btnPerut_Click(Object
sender, EventArgs e) in
C:\WorkingFolder\NeemanutRoot\NeemanutWcfTest\UI\BakarotShotfot\wfrmBkrShotefHitpalgutNechasim.vb:line
242
**IsVurtual =** true
**FullQualifieldName** = "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll"
**Module =** {System.Reflection.Module}
エラーの原因を見つけて修正する方法はありますか?