We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Syncfusion crash after Windows 10 anniversary update

Thread ID:





125270 Aug 4,2016 03:59 AM Aug 9,2016 08:55 AM Windows Forms 3
Tags: TreeViewAdv
Christian Gerhards
Asked On August 4, 2016 03:59 AM


after the last windows 10 update we get the following error.
Is there at the moment a general problem with the anniversary win 10 update and syncfusion?


Error happens on:

if the Property ThemesEnabled is set to true.

Platform: AnyCPU
Tested on: 64bit OS

The wparam of the win-message gets to big on a 64bit system and converting it with ToInt32() causes the error.

Instead of using System.IntPtr.ToInt32() use ToInt64()

m    {msg=0x85 (WM_NCPAINT) hwnd=0x3084c wparam=0xbd04149d lparam=0x0 result=0x0}    System.Windows.Forms.Message

   bei System.IntPtr.ToInt32()
   bei Syncfusion.Drawing.DrawingUtils.NCPaintHelper(Control control, INonClientPaintingSupport ncPaintDelegate, Message& m)
   bei Syncfusion.Windows.Forms.ThemedWindowDrawing.DrawThemedBorderColor(Control control, Message& msg)
   bei Syncfusion.Windows.Forms.ScrollControl.WmNcPaint(Message& msg)
   bei Syncfusion.Windows.Forms.ScrollControl.WndProc(Message& msg)
   bei Syncfusion.Windows.Forms.Tools.TreeViewAdv.WndProc(Message& m)
   bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   bei System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


You are doing it the right way on:


See also:
"Note that HANDLE is defined as a void*, so typecasting a HANDLE value to a ULONG value to test, set, or clear the low-order 2 bits is an error on 64-bit Windows."
source: https://msdn.microsoft.com/en-us/library/windows/desktop/aa384242(v=vs.85).aspx

See also:
"On a 64-bit platform, the value of this instance is too large or too small to represent as a 32-bit signed integer."
source: https://msdn.microsoft.com/de-de/library/system.intptr.toint32(v=vs.110).aspx

Vijayalakshmi Roopkumar [Syncfusion]
Replied On August 5, 2016 01:11 PM

Hi Christian,

We have analysed the reported problem with TreeviewAdv by setting ThemeEnabled property in Specified OS configuration. But we are unable to reproduce the reported issue. Please find the screenshot that shows the ThemeEnabled property set for TreeViewAdv.


Could you please provide us the issue reproducible sample along with the replication steps? That would be helpful for us to proceed further on this.

Vijayalakshmi V.R.

Christian Gerhards
Replied On August 8, 2016 03:44 AM


we have provided a example which shows the error.

Please click on the button "WM_NCPAINT" and wait a few seconds then the error will occur.

Christian Gerhards

Attachment: Example_5ed288c3.rar

Sugapriya Mariappan [Syncfusion]
Replied On August 9, 2016 08:55 AM

Hi Christian,

Please check the incident under your direct trac account for the further followup



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.