|
Edhy Rijo
|
|
|
Group: StrataFrame Users
Posts: 2.4K,
Visits: 23K
|
Hi, I am working with a DataGridView in a child form, if I cancel the childform with the follwing code: DialogResult = Windows.Forms.DialogResult.Cancel Then I get the following exception:
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.BusinessBindingSource.RemoveBOHandlers()
at MicroFour.StrataFrame.Business.BusinessBindingSource.Dispose(Boolean disposing)
at System.ComponentModel.Component.Dispose()
at System.ComponentModel.Container.Dispose(Boolean disposing)
at System.ComponentModel.Container.Dispose()
at CardTrackingSystem.frmActivateCardsItems.Dispose(Boolean disposing) in E:\Visual Studio 2008 Projects\StrataFrame\Card Tracking System Projects\CardTrackingSystem.NET\CTS Solution\Card Tracking System\Dialogs\Transaction Forms\Activate Cards\frmActivateCardsItems.Designer.vb:line 10
at System.Windows.Forms.Form.Close()
at MicroFour.StrataFrame.UI.Windows.Forms.ChildFormDialog.ShowDialog(Object[] Arguments)
at MicroFour.StrataFrame.UI.Windows.Forms.ChildFormDialog.ShowDialog()
at CardTrackingSystem.frmActivateCards.cmdAddCards_Click(Object sender, EventArgs e) in E:\Visual Studio 2008 Projects\StrataFrame\Card Tracking System Projects\CardTrackingSystem.NET\CTS Solution\Card Tracking System\Dialogs\Transaction Forms\Activate Cards\frmActivateCards.vb:line 800
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.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.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
The DataGridView is being populated with a BBS and the error only happens if the grid has some data. I don't know what "Key" it may be looking for? Also I would like to note that the BO assigned to the BBS has come Custom Field Properties which are not used in the DataGridView.
Edhy Rijo
|
|
|
|
|
Edhy Rijo
|
|
|
Group: StrataFrame Users
Posts: 2.4K,
Visits: 23K
|
Ross L. Rooker, Sr. (08/16/2009) Is there a quick fix for this? or do I need to download 1.7.0.1?Hi Ross, I would try 1.7.0.1 first.
Edhy Rijo
|
|
|
|
|
Trent Taylor
|
|
|
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 7K
|
Ross,
I am assuming that you are using DevExpress grids or something along those lines. Yes, please download the 1.7.0.1 build as we made a change to prevent any 3rd party control that references the IBindingList interface during or after disposal.
|
|
|
|
|
ChanKK
|
|
|
Group: Forum Members
Posts: 190,
Visits: 1.3K
|
Hi
I just tried to upgrade my SF 1.6.6.9 to 1.7.0.6. Very unfortunately, I hit the same error as this thread. I have downloaded latest SF source code and the changes is there. I recompile the code and use the compiled dll instead of the one from installer, but same result.
Anything to check?
Thank you
|
|
|
|
|
ChanKK
|
|
|
Group: Forum Members
Posts: 190,
Visits: 1.3K
|
Additionally, I am using DevExpress 9.1.4
|
|
|
|
|
ChanKK
|
|
|
Group: Forum Members
Posts: 190,
Visits: 1.3K
|
|
|
|
|
|
Trent Taylor
|
|
|
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 7K
|
Wow...this is an ironic twist of fate. A while back we made a number of changes to make sure that memory was cleaned up as DevExpress Winform grids would not dispose the enumerator, thus causing a major memory leak. So we added logic to force the grid to clean up after itself and dispose of the internal enumerator objects. This has been largely tested. However, DevExpress didn't follow the same logic on their web grid, thus causing the objects to dispose prematurely.
So we had to alter the way that the WBBS works versus the standard BBS. Ultimately it was a very small change and will not affect any users not using the DevExpress web grid. Just FYI, Infragistcs, Telerik, and the standard GridView all worked. DevExpress is the only one that failed.
So this issue has been resolved and I will put up a temporary build for you here in a bit so you can move forward.
|
|
|
|
|
ChanKK
|
|
|
Group: Forum Members
Posts: 190,
Visits: 1.3K
|
Hi,
Thank you. I am downloading, will inform you once testing done.
May be you should inform DevExpress about this as well.
Thank you
|
|
|
|
|
Trent Taylor
|
|
|
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 7K
|
Sounds good, Chan. Thanks.
|
|
|
|
|
ChanKK
|
|
|
Group: Forum Members
Posts: 190,
Visits: 1.3K
|
Hi,
I have tested and found new issues.
Testing project
Problems:
1. Takes long time to load when press refresh button or F5
2. The grid view keeps on loading with no end when u clicks any page number of the grid or enters any words in filter row
Beside, for any BO's that using GUID will hit the error as attached
Please advice ASAP.
Thank you
|
|
|
|
|
Trent Taylor
|
|
|
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 7K
|
This is on my radar and I am looking into this. Sorry for the delay.
|
|
|
|