Hi,
Sometimes, I keep getting this error. But it works fine most of the time. Can anyone help? Thanks!
Message: System.NullReferenceException: Object reference not set to an instance of an object. at Infragistics.Win.UltraWinGrid.RefUtils.GetRowCalcIndex(UltraGridRow row, FormulaRowIndexSource rowIndexType) at Infragistics.Win.UltraWinGrid.RefRowIterator.GetNextRow() at Infragistics.Win.UltraWinGrid.RefRowIterator.MoveNext() at Infragistics.Win.UltraWinGrid.RefRowIterator.MoveNext() at Infragistics.Win.UltraWinGrid.RefCellCollection.RefCellCollectionEnumerator.MoveNext() at Infragistics.Win.CalcEngine.RangeCalcInfo.EvaluateNextRow() at Infragistics.Win.CalcEngine.UltraCalcEngine.Evaluate(Int64 ticks) at Infragistics.Win.CalcEngine.UltraCalcEngine.Recalc(Int64 ticks) at Infragistics.Win.UltraWinCalcManager.UltraCalcManager.ReCalcInternal(Int64 ticks) at Infragistics.Win.UltraWinCalcManager.UltraCalcManager.ReCalc(Int64 millis) at PortfolioMonitor.Windows.UI.MainGrid.UIHandler.ReCalcTimer.timer_Tick(Object sender, EventArgs e) in C:\Documents and Settings\a456056\a456056_view_portfolio_monitor_1.0_dev\vob_portfolio_monitor\Frontend\Code\PortfolioMonitorModule\PortfolioMonitor.Windows.UI\MainGrid\UIHandler\ReCalcTimer.cs:line 116
What version of the grid are you using? Do you have the latest Hot Fix?
Is your application using threading? This could be caused by a threading issue if data is not being properly marshalled to the UI thread.
Hi Mike,
Thanks for your reply.
I am using threading, but I believe data is modifieid to the UI thread poperly.
I reliase this exception happens quite frequent after I rebind the datasource few times. If I don't do any rebind, it won't happen.
Thanks
Jason
Hi Jason,
Well... there's no way I can tell for sure, but if you are using threads that would be the prime suspect to me. It's very easy to do something on one thread that causes a problem on another thread without realizing it.
Is there anyway I can reset the CalcManager back to it's initial state when I get this exception?
Thanks,
Hi Jason.
No, I don't think there is any way to reset the CalcManager.