Otis wrote:
The exception is thrown in LLBLGen Pro code or in the janus grid code? I know they use obfuscation, but it might be handy to have a stacktrace
Here's the trace. I should mention that this didn't happen with the V2 version of the Janus Grid. Also, the ListChangedEventArgs has "ItemChanged" and the index is the index of the newly added entity in the collection.
---- Stack Trace ----
System.Collections.ArrayList.RemoveAt(index As Int32)
CODA GUI.EXE: N 2774149
Janus.Data.JanusRowCollection.c( As JanusRow)
CODA GUI.EXE: N 00060
Janus.Data.JanusDataRow.b()
CODA GUI.EXE: N 00092
Janus.Data.DataHolderRow.b()
CODA GUI.EXE: N 00101
Janus.Data.TableListHolderRow.d( As Int32)
CODA GUI.EXE: N 00091
Janus.Data.TableListHolderRow.a( As ListChangedEventArgs)
CODA GUI.EXE: N 00050
Janus.Data.TableListHolderRow.a( As Object, As ListChangedEventArgs)
CODA GUI.EXE: N 00146
System.Windows.Forms.CurrencyManager.OnListChanged(e As ListChangedEventArgs)
CODA GUI.EXE: N 00022
System.Windows.Forms.CurrencyManager.List_ListChanged(sender As Object, e As ListChangedEventArgs)
CODA GUI.EXE: N 01302
System.ComponentModel.ListChangedEventHandler.Invoke(sender As Object, e As ListChangedEventArgs)
CODA GUI.EXE: N 00000
System.Windows.Forms.BindingSource.OnListChanged(e As ListChangedEventArgs)
CODA GUI.EXE: N 00122
System.Windows.Forms.BindingSource.InnerList_ListChanged(sender As Object, e As ListChangedEventArgs)
CODA GUI.EXE: N 00045
System.ComponentModel.ListChangedEventHandler.Invoke(sender As Object, e As ListChangedEventArgs)
CODA GUI.EXE: N 00000
SD.LLBLGen.Pro.ORMSupportClasses.EntityCollectionBase2.OnListChanged(index As Int32, typeOfChange As ListChangedType)
EntityCollectionBase2.cs: line 1603, col 05, IL 0044
SD.LLBLGen.Pro.ORMSupportClasses.EntityCollectionBase2.EntityInListOnEntityContentsChanged(sender As Object, e As EventArgs)
EntityCollectionBase2.cs: line 1620, col 05, IL 0035
SD.LLBLGen.Pro.ORMSupportClasses.EntityBase2.FlagMeAsChanged()
EntityBase2.cs: line 0857, col 05, IL 0027
SD.LLBLGen.Pro.ORMSupportClasses.EntityBase2.PostFieldValueSetAction(fieldValueSet As Boolean)
EntityBase2.cs: line 1434, col 05, IL 0064
CODA.SupportClasses.Security.SecureEntityBase.PostFieldValueSetAction(fieldValueSet As Boolean)
SecureEntityBase.vb: line 0049, col 04, IL 0001
CODA.Entities.EntityClasses.EmployeeEmploymentAction.SetNewFieldValue(fieldIndex As Int32, value As Object)
EmployeeEmploymentAction.designer.vb: line 0435, col 05, IL 0262