Posted 25 January 2022, 12:24 am EST
Hi C1,
see attached sample: GridTreeCrash.zip
It crashes in the call to “C1FlexGrid.Tree.Sort” with this exception:
System.NullReferenceException
HResult=0x80004003
Message=Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
Source=C1.Win.C1FlexGrid.4.5.2
StackTrace:
at C1.Win.C1FlexGrid.Node.#kMn(Node #Nwf, IComparer #G5f)
at C1.Win.C1FlexGrid.GridTree.#1sf(Int32 #epd, IComparer #G5f, SortFlags #ipj, Int32 #g0b, Int32 #h0b)
at C1.Win.C1FlexGrid.GridTree.Sort(Int32 level, IComparer comparer)
at GridTreeCrash.Form1..ctor() in c:\temp\GridTreeCrash\GridTreeCrash\Form1.cs:line 34
Is there any workaround? Is it caused by the way I create the grid?
This is a major regression, as it blocks the update to .537 for us.
And it would also block the update to Visual Studio 2022, as https://www.grapecity.com/forums/winforms-edition/c1-flex-grid-with-visual-s states that the new C1 version is required to support it.
So, if this is a regression, please consider providing another hotfix release. If not, we could not migrate to Visual Studio 2022 until your next release 22v1.
Best regards
Wolfgang