After updating our main TCMS application to Beta 1.6.7 we began seeing this error. This happens whenwe call the dispose on the advance browse dialog window.
When we click Cancel the following code runs
''' <summary>''' Command Canel Click Event.''' </summary>''' <param name="sender"></param>''' <param name="e"></param>''' <remarks></remarks>Private Sub cmdCancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdCancel.Click'-- Set the DialogResult on the FOrmMe.DialogResult = Windows.Forms.DialogResult.Cancel'-- Dispose of FormMe.Dispose()End Sub When the dispose is executed the error below happens. Any ideas.
KeyNotFoundException
The given key was not present in the dictionary.
Source : mscorlib
Stack Trace:
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at MicroFour.StrataFrame.Business.BusinessLayer.get__CurrentDataTable(Boolean IsSharedTable)
at MicroFour.StrataFrame.Business.BusinessLayer.ChangesExistOnCurrentDataTable()
at MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.OnFormClosing(FormClosingEventArgs e)
at System.Windows.Forms.Form.CheckCloseDialog(Boolean closingOnly)