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.

Crash on Mousewheel scroll 64-bit

Thread ID:

Created:

Updated:

Platform:

Replies:

124862 Jul 5,2016 04:20 AM Jul 6,2016 11:03 PM Windows Forms 2
loading
Tags: EditControl
Christian Gerhards
Asked On July 5, 2016 04:20 AM

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

Christian Gerhards
Replied On July 5, 2016 04:28 AM

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

Kannan R [Syncfusion]
Replied On July 6, 2016 11:03 PM

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 
 


CONFIRMATION

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.

;