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. Image for the cookie policy date

Crash on Mousewheel scroll 64-bit

Hello,

the problem occurs on a 64-bit system if you scroll down in the editControl via the mousewheel.
We using a hack to prevent the division by 0 but the bug should be fixed in the syncfusion api.
We just want to inform you because this bug is now occuring for a longer time.

Our hack fix:
Public Class ScrollWheelFilter
    Implements IMessageFilter

    Public Const WM_MOUSEWHEEL As Integer = &H20A
    Public Const MK_CONTROL As Integer = &H8

    <SecurityPermission(SecurityAction.LinkDemand, Flags:=SecurityPermissionFlag.UnmanagedCode)> _
    Public Function PreFilterMessage(ByRef m As System.Windows.Forms.Message) As Boolean Implements System.Windows.Forms.IMessageFilter.PreFilterMessage
        If m.Msg = WM_MOUSEWHEEL Then
            Dim wParamLong = m.WParam.ToInt64
            If wParamLong > Integer.MaxValue Or wParamLong < Integer.MinValue Then
                Return True
            End If
        End If
        Return False
    End Function
End Class



Exception:
System.OverflowException occurred
Message: A first chance exception of type 'System.OverflowException' occurred in Syncfusion.Tools.Windows.dll
Additional information: Die arithmetische Operation hat einen Überlauf verursacht.


Stacktrace:
>    Syncfusion.Tools.Windows.dll!Syncfusion.Windows.Forms.Tools.CommandBarController.AppMainFormWnd.WndProc(ref System.Windows.Forms.Message m)    Unknown
     System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.Callback(System.IntPtr hWnd, int msg, System.IntPtr wparam, System.IntPtr lparam)    Unknown
     System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DefWndProc(ref System.Windows.Forms.Message m)    Unknown
     Syncfusion.Tools.Windows.dll!Syncfusion.Windows.Forms.Tools.XPMenus.MenuActivationControl.WndProc(ref System.Windows.Forms.Message m)    Unknown
     System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.Callback(System.IntPtr hWnd, int msg, System.IntPtr wparam, System.IntPtr lparam)    Unknown
     System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DefWndProc(ref System.Windows.Forms.Message m)    Unknown
     Syncfusion.Tools.Windows.dll!Syncfusion.Windows.Forms.Tools.XPMenus.FormNativeWindow.WndProc(ref System.Windows.Forms.Message m)    Unknown
     System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DebuggableCallback(System.IntPtr hWnd, int msg, System.IntPtr wparam, System.IntPtr lparam)    Unknown
     [Native to Managed Transition]   
     [Managed to Native Transition]   
     System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DefWndProc(ref System.Windows.Forms.Message m)    Unknown
     System.Windows.Forms.dll!System.Windows.Forms.Control.WmMouseWheel(ref System.Windows.Forms.Message m)    Unknown
     System.Windows.Forms.dll!System.Windows.Forms.Control.WndProc(ref System.Windows.Forms.Message m)    Unknown
     Syncfusion.Edit.Windows.dll!Syncfusion.Windows.Forms.Edit.EditControl.WndProc(ref System.Windows.Forms.Message m)    Unknown
     System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DebuggableCallback(System.IntPtr hWnd, int msg, System.IntPtr wparam, System.IntPtr lparam)    Unknown
     [Native to Managed Transition]   
     [Managed to Native Transition]   
     System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DefWndProc(ref System.Windows.Forms.Message m)    Unknown
     System.Windows.Forms.dll!System.Windows.Forms.Control.WmMouseWheel(ref System.Windows.Forms.Message m)    Unknown
     System.Windows.Forms.dll!System.Windows.Forms.Control.WndProc(ref System.Windows.Forms.Message m)    Unknown
     System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DebuggableCallback(System.IntPtr hWnd, int msg, System.IntPtr wparam, System.IntPtr lparam)    Unknown
     [Native to Managed Transition]   
     [Managed to Native Transition]   
     System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DefWndProc(ref System.Windows.Forms.Message m)    Unknown
     System.Windows.Forms.dll!System.Windows.Forms.Control.WmMouseWheel(ref System.Windows.Forms.Message m)    Unknown
     System.Windows.Forms.dll!System.Windows.Forms.Control.WndProc(ref System.Windows.Forms.Message m)    Unknown
     System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DebuggableCallback(System.IntPtr hWnd, int msg, System.IntPtr wparam, System.IntPtr lparam)    Unknown
     [Native to Managed Transition]   
     [Managed to Native Transition]   
     System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DefWndProc(ref System.Windows.Forms.Message m)    Unknown
     System.Windows.Forms.dll!System.Windows.Forms.Control.WmMouseWheel(ref System.Windows.Forms.Message m)    Unknown
     System.Windows.Forms.dll!System.Windows.Forms.Control.WndProc(ref System.Windows.Forms.Message m)    Unknown
     System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DebuggableCallback(System.IntPtr hWnd, int msg, System.IntPtr wparam, System.IntPtr lparam)    Unknown
     [Native to Managed Transition]   
     [Managed to Native Transition]   
     System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DefWndProc(ref System.Windows.Forms.Message m)    Unknown
     System.Windows.Forms.dll!System.Windows.Forms.Control.WmMouseWheel(ref System.Windows.Forms.Message m)    Unknown
     System.Windows.Forms.dll!System.Windows.Forms.Control.WndProc(ref System.Windows.Forms.Message m)    Unknown
     Syncfusion.Edit.Windows.dll!Syncfusion.Windows.Forms.Edit.IntelliScrollableControl.WndProc(ref System.Windows.Forms.Message m)    Unknown
     Syncfusion.Edit.Windows.dll!Syncfusion.Windows.Forms.Edit.StreamEditControl.WndProc(ref System.Windows.Forms.Message m)    Unknown
     System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.Callback(System.IntPtr hWnd, int msg, System.IntPtr wparam, System.IntPtr lparam)    Unknown
     System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DefWndProc(ref System.Windows.Forms.Message m)    Unknown
     Syncfusion.Shared.Base.dll!Syncfusion.Windows.Forms.Interop.NativeWindowEx.WndProc(ref System.Windows.Forms.Message m)    Unknown
     System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.Callback(System.IntPtr hWnd, int msg, System.IntPtr wparam, System.IntPtr lparam)    Unknown
     System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DefWndProc(ref System.Windows.Forms.Message m)    Unknown
     Syncfusion.Shared.Base.dll!Syncfusion.Windows.Forms.Interop.NativeWindowEx.WndProc(ref System.Windows.Forms.Message m)    Unknown
     System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DebuggableCallback(System.IntPtr hWnd, int msg, System.IntPtr wparam, System.IntPtr lparam)    Unknown
     [Native to Managed Transition]   
     [Managed to Native Transition]   
     System.Windows.Forms.dll!System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(System.IntPtr dwComponentID, int reason, int pvLoopData)    Unknown
     System.Windows.Forms.dll!System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(int reason, System.Windows.Forms.ApplicationContext context)    Unknown
     System.Windows.Forms.dll!System.Windows.Forms.Application.ThreadContext.RunMessageLoop(int reason, System.Windows.Forms.ApplicationContext context)    Unknown
     Microsoft.VisualBasic.dll!Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()    Unknown
     Microsoft.VisualBasic.dll!Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()    Unknown
     Microsoft.VisualBasic.dll!Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(string[] commandLine)    Unknown
     [Native to Managed Transition]   
     mscorlib.dll!System.AppDomain.ExecuteAssembly(string assemblyFile, System.Security.Policy.Evidence assemblySecurity, string[] args)    Unknown
     Microsoft.VisualStudio.HostingProcess.Utilities.dll!Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()    Unknown
     mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx)    Unknown
     mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx)    Unknown
     mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state)    Unknown
     mscorlib.dll!System.Threading.ThreadHelper.ThreadStart()    Unknown


Greez
Chris

2 Replies

CG Christian Gerhards July 5, 2016 08:28 AM UTC

The error seems to happen because intptr is a 64bit type.


KR Kannan R Syncfusion Team July 7, 2016 03:03 AM UTC

Hi Christian, 
 
Thank you for contacting Syncfusion support. 
 
We hope reported behavior as bug. Since it reproducing in 64-bit Operating System alone, a support incident has been created under your account to track this requirement. Please log on to our support website to check for further updates. 
 
 
Regards, 
 
Kannan 
 


Loader.
Up arrow icon