超越->算术运算导致溢出
我有一个使用一些 Xceed 库的应用程序,我们开始在 Windows 7 上部署它。问题出在 WinComboBox 对象上:如果我使用鼠标上的滚轮并向下滚动/“过去”列表底部< em>非常快(它必须快,慢或使用键盘不会触发此错误),然后我收到此错误。
Unhandled exception occured in ->Arithmetic operation resulted in an overflow.>>>
at Xceed.Editors.ComboBoxTextBoxArea.WndProc(Message& m)[0Dh][0Ah]
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)[0Dh][0Ah]
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
我知道该错误意味着什么,但我无法弄清楚它发生在哪里或如何查明发生了什么。
这种情况只发生在 Windows 7 机器上(在任何 XP 系统上从来没有出现过问题)并且很容易重现...它甚至可以使用 Xceed 示例/演示应用程序重现,所以这就是我认为问题出在他们的代码中的方式。不幸的是,我没有 Xceed 的源代码,而且我们落后了两个版本,但我希望也许其他人已经处理过这个问题或有想法。我尝试重写几种我认为可能出现错误的方法,但没有成功。
提前致谢。
I have an application that uses some Xceed libraries and we are starting to deploy it on Windows 7. The problem is with the WinComboBox object: if I use the scroll wheel on the mouse and scroll down/"past" the bottom of the list REALLY FAST (it has to be fast, going slow or using the keyboard will not trigger this) then I get this error.
Unhandled exception occured in ->Arithmetic operation resulted in an overflow.>>>
at Xceed.Editors.ComboBoxTextBoxArea.WndProc(Message& m)[0Dh][0Ah]
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)[0Dh][0Ah]
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
I know what the error means, but I can't figure out where it is occurring or how to pinpoint what is happening.
This only happens with the Windows 7 machines (never had a problem on any XP systems) and is easy to reproduce... it is even reproducible with the Xceed example/demo apps, so that's how I figure the problem is in their code. Unfortunately I do not have the source for Xceed, and we are two versions behind, but I was hoping that maybe somebody else has already dealt with this or has an idea. I've tried to override several methods where I thought the error might be, but no success.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在 Windows 7 64 位操作系统上使用 System.Windows.Forms.ComboBox 时遇到了同样的问题。通过使项目在 32 位模式而不是 64 位模式下运行,问题就消失了:
使用 Visual Studio 2008
1.右键单击启动项目,然后单击属性
2。单击左侧栏中的“构建”
3。将 Platform target 中的值更改为 x86
I had the same problem using a System.Windows.Forms.ComboBox on my Windows 7 64bit OS. By making the project run in 32bit mode instead of 64bit mode, the problem went away:
Using Visual Studio 2008
1. Right click on startup project and click Properties
2. Click on Build in the left side bar
3. Change the value in Platform target to x86