Hello,
I am using the GanttControl WPF.
Version : 20.4.0.38 .NET 6.0 --> NO PROBLEM
Version : 21.2.3 .NET 6.0 --> EXCEPTION THROWN
Version : 22.1.34 .NET 6.0 --> EXCEPTION THROWN
Here is the stack trace of the error :
at Syncfusion.Windows.Controls.Gantt.Schedule.GanttSchedule.GetCloneOfBaseSource()
at Syncfusion.Windows.Controls.Gantt.Schedule.GanttSchedule.SetZoomFactor(ZoomChangedEventArgs zoomArgs)
at Syncfusion.Windows.Controls.Gantt.GanttControl.SetZoomFactor()
at Syncfusion.Windows.Controls.Gantt.GanttControl.UpdateScheduleAndChart()
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at Jtms.App.Main()
----------------------------------------------------------------
The error comes in my main application, I do not have a sample that reproduce the problem. Do you need one ?
Thank you for investigating.
BR,
Nicolas
Hi Nicolas,
Currently we are analysing your query. We will validate and update you with further details on or before July 4, 2023. We appreciate your patience till then.
Regards,
Vishal O.
Hi Nicolas,
We will add the possible null check in our source with the help of the given call stack. We will include it in the upcoming weekly nuget release which is expected to roll out on July 11, 2023. We appreciate the patience until then.
Regards,
SaiGanesh Sakthivel
Hi Nicolas,
We have fixed the reported issue "Null reference exception when using the last version of the assemblies" and included the issue fix in our latest Weekly NuGet release update version 22.1.38, which is available for download at nuget.org.
We thank you for your support and appreciate your patience in waiting for this update. Please get in touch with us if you require any further assistance.
Hello Vidyalakshmi,
Thank you.
Can you made a patches link to my account with the .dll of the control including the fix ?
In our organization, we do not use Nuget but directly the .dll file.
Thank you
Have a nice day
Nicolas
Hi Nicolas,
As you requested, we have prepared a patch which includes the fix for issue “Null reference exception when using the last version of the assemblies”. Before installing the patch, kindly remove bin and obj folders from all the projects of solution and clear NuGet cache.
Please refer our following KB document to clear nuget cache.
https://www.syncfusion.com/kb/6987/how-to-clear-nuget-cache
Custom Assemblies: https://syncfusion.com/Installs/support/patch/22.1.34/1188824/F183192/SyncfusionPatch_22.1.34_1188824_7132023033603857_F183192.zip
Disclaimer:
Please note that we have created this patch for version 22.1.34 specifically to include the issue.
Regards,
Vishal O.