getting System.NullReferenceException at Syncfusion.Windows.Forms.Tools.FloatingFormController.HandleMouseMoveImp

We are getting this exception and the application is crashing with below shown stack trace.


As there is nothing from application code base on the stack trace we are unable to debug the issue. The exception is thrown while user is performing multiple operations and no fix steps to reproduce could be identified.


Exception:




System.NullReferenceException




Description:




Object reference not set to an instance of an object.




Stack Trace:




   at Syncfusion.Windows.Forms.Tools.FloatingFormController.HandleMouseMoveImp(MouseButtons button, Point ptclient)


   at Syncfusion.Windows.Forms.Tools.FloatingForm.OnLocationChanged(EventArgs e)


   at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)


   at System.Windows.Forms.Control.UpdateBounds()


   at System.Windows.Forms.Control.WndProc(Message& m)


   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)


   at System.Windows.Forms.ContainerControl.WndProc(Message& m)


   at System.Windows.Forms.Form.WndProc(Message& m)


   at Syncfusion.Windows.Forms.Tools.FloatingForm.WndProc(Message& msg)


   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)


   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)


   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)





6 Replies

RS Raghavendra Sudhakar Syncfusion Team May 23, 2023 04:03 PM UTC

Hi Deepak Joshi,


Even though the exception is produced randomly is there any specific pattern in which the exception occurs? Since the crash is happening in the floating form, does it occur while interacting with the floating window itself or while interacting with the elements inside the window (e.g., selecting an element from a dropdown). If possible, please share the video of the scenario where the exception is produced.

These information would be helpful for us to solve the issue.


We are currently experiencing some issues with creating a patch. However, we will be providing a patch for testing with null checks shortly. Please test it and let us know if the problem still persists.


Regards,

Raghavendra S




DJ Deepak Joshi May 24, 2023 05:57 AM UTC

Hi Raghavendra S,

Thanks for investigating the issue. There is no fix set of steps through which the issue can be reproduced as it is reported by different clients on different areas. The issue is not reproducible on my machine, it's occurring at client's end only, so we won't be able to provide any video on this.

Just to be specific, the client is facing this issue in below mentioned scenarios. 

  1. while opening a window from menu option
  2. while shifting between multiple windows opened side by side
  3. while closing one of the multiple windows opened side by side
As mentioned earlier, the steps are not fixed and may vary for each client.

If you could provide a patch, that would be really helpful. Looking forward to it.

Thanks and regards,
Deepak M. Joshi.



RS Raghavendra Sudhakar Syncfusion Team May 24, 2023 08:57 AM UTC

Hi Deepak Joshi,


We have created the testing patch for your reported issue. Please check and revert us whether it resolve your reported issue

 

This patch can be downloaded from the links below. 

Recommended approach - exe will perform automatic configuration.  

Please find the patch setup from the location below:           

Patch link: 

https://syncfusion.com/Installs/support/patch/15.2.0.40/1155453/T465739/SyncfusionPatch_15.2.0.40_1155453_5242023024557228_T465739.exe

Please find the patch assemblies alone from the location below:            

Assemblies Link:    

https://syncfusion.com/Installs/support/patch/15.2.0.40/1155453/T465739/SyncfusionPatch_15.2.0.40_1155453_5242023024557228_T465739.zip

NuGet link:  

https://syncfusion.com/Installs/support/patch/15.2.0.40/1155453/T465739/SyncfusionNuget_15.2.0.40_1155453_5242023024557228_T465739.zip

 

Assembly Version: 15.2.0.40

Installation Directions:           

This patch should replace the files " Syncfusion.Tools.WPF” under the following folder.           

$system drive:\ Files\Syncfusion\Essential Studio\$Version # \precompiledassemblies\$Version#\[TargetFramework]           

Eg : $system drive:\Program Files\Syncfusion\Essential Studio\15.2.0.40\precompiledassemblies\15.2.0.40\ 4.6 

To automatically run the Assembly Manager, please check the Run assembly manager checkbox option while installing the patch. If this option is unchecked, the patch will replace the assemblies in precompiled assemblies’ folder only. Then, you must manually copy and paste them to the preferred location, or you must run the Syncfusion Assembly Manager application (available from the Syncfusion Dashboard, installed as a shortcut in the Application menu) to re-install assemblies. 

https://www.syncfusion.com/support/directtrac/patches  


Regards,

Raghavendra S



DJ Deepak Joshi May 24, 2023 09:21 AM UTC

Hi  Raghavendra S,


Thanks for providing the patch. I do have some questions related to the patch though.

  1. In the description it is mentioned that " This patch should replace the files " Syncfusion.Tools.WPF” ". Ours is a legacy windows application and does not contain any WPF element.
  2. The target framework mentioned for the patch is 4.6 whereas we are using .Net Framework 3.5.
  3. I extracted the files from assemblies link and checked the version for syncfusion.tools.windows.dll file at 'SyncfusionPatch_15.2.0.40_1155453_5242023024557228_T465739\3.5' but it is found to be the same that we are currently using. Please find the attached screenshot for more details.

Please do let me know if I am missing anything.

Thanks and regards.
Deepak M. Joshi

Attachment: 20230524_14_46_39_80af1d21.zip


RS Raghavendra Sudhakar Syncfusion Team May 25, 2023 12:57 PM UTC

Hi Deepak Joshi,


We have provided the patch for your version. Otherwise, you cannot use it in your application. Additionally, we would like to remind you that this is a test patch. We have made changes regarding null checks. Therefore, please apply the patch to your application and let us know if the issue has been resolved.



Regards,

Raghavendra S



DJ Deepak Joshi May 26, 2023 02:09 PM UTC

Hi Raghavendra S,

We would be integrating the shared patch in the application on Monday. Then, we need to perform QA and will share the updated installer with the client afterwards. I will get back to you on this once I hear anything from the client. This will take some time. I request you to keep the thread open till that time.

Thanks and regards,

Deepak M. Joshi


Loader.
Up arrow icon