|
Group: Forum Members
Posts: 43,
Visits: 1
|
It reproduces not every time. I think it is related with threads. Unfortunately I'm not able to post all code here.
Here are exception details:
System.NullReferenceException was unhandled Message=Ссылка на объект не указывает на экземпляр объекта. Source=Nevron.Chart.WinForm StackTrace: в Nevron.Chart.WinForm.NChartControl.get_Panels() в ChartsProject.GraphUpdaters.AxisUpdateOperations.LastPointLabelUpdateOperation.removeAnnotationById(Int32 panelId) в C:\ChartsProject\GraphUpdaters\AxisUpdateOperations\LastPointLabelUpdateOperation.cs:строка 167 в ChartsProject.GraphUpdaters.AxisUpdateOperations.LastPointLabelUpdateOperation.setAnnotationToPointOnLine(NLineSeries line, Int32 pointIndex, Int32 annotationId) в C:\ChartsProject\GraphUpdaters\AxisUpdateOperations\LastPointLabelUpdateOperation.cs:строка 123 в ChartsProject.GraphUpdaters.AxisUpdateOperations.LastPointLabelUpdateOperation.performUpdate(NAxis chartAxis, IObject axisObject) в C:\ChartsProject\GraphUpdaters\AxisUpdateOperations\LastPointLabelUpdateOperation.cs:строка 75 в ChartsProject.GraphUpdaters.CAxisUpdater.updateComponent() в C:\ChartsProject\GraphUpdaters\CAxisUpdater.cs:строка 45 в ChartsProject.GraphUpdaters.CFullGraphViewUpdater.performUpdate() в C:\ChartsProject\GraphUpdaters\CFullGraphViewUpdater.cs:строка 53 в ChartsProject.CGraphView.UpdateChartProperties(IObject currentObject) в C:\ChartsProject\CGraphView.cs:строка 383 в ChartsProject.CIntermediateGraphView.invokePropertyUpdateInMainThread(MMEDataViewObject dataViewObject) в C:\ChartsProject\CIntermediateGraphView.cs:строка 192 в ChartsProject.CIntermediateGraphView.getDataCallback(IAsyncResult ar) в C:\ChartsProject\CIntermediateGraphView.cs:строка 169 в System.Runtime.Remoting.Messaging.AsyncResult.SyncProcessMessage(IMessage msg) в System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink) в System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.DoAsyncCall() в System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.ThreadPoolCallBack(Object o) в System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state) в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx) в System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() в System.Threading.ThreadPoolWorkQueue.Dispatch() в System.Threading._ThreadPoolWaitCallback.PerformWaitCallback() InnerException:
Here is the part of Disassembly, cursor is on the line 00000044. Maybe it helps you to understand the reason for the exception. NPanelCollection panels = _chartControl.Panels; 00000044 mov eax,dword ptr [ebp-3Ch] 00000047 mov ecx,dword ptr [eax+4] 0000004a mov eax,dword ptr [ecx] 0000004c mov eax,dword ptr [eax+000000CCh] 00000052 call dword ptr [eax+1Ch] 00000055 mov dword ptr [ebp-50h],eax 00000058 mov eax,dword ptr [ebp-50h] 0000005b mov dword ptr [ebp-44h],eax
|