算术运算导致InputLanguageChangingEventArgs中溢出 [英] Arithmetic operation resulted in an overflow in InputLanguageChangingEventArgs

查看:291
本文介绍了算术运算导致InputLanguageChangingEventArgs中溢出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题,一个用户,我的应用程序只是抛出和未处理的异常,没有特别的原因。我不知道是因为应用程序本身不检查或处理任何与远程相关的输入语言更改事件。这个例外是非常模糊的,因为它没有任何内在的异常或任何其他信息告诉发生了什么,因为它似乎是一个算术溢出异常。



这里是异常消息和堆栈跟踪:

 类型:System.OverflowException 
消息:算术演算结果オーバーフローが発生しました
来源:System.Windows.Forms
堆栈跟踪:场所System.Windows.Forms.InputLanguageChangingEventArgs..ctor(InputLanguage inputLanguage,Boolean sysCharSet)
场所System.Windows.Forms.Control。 WmInputLangChangeRequest(Message& m)
场所System.Windows.Forms.Control.WndProc(Message& m)
场所System.Windows.Forms.ButtonBase.WndProc(Message& m)
场所系统.Windows.Forms.Button.WndProc(Message& m)
场所System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd,Int32 msg,IntPtr wparam,IntPtr lparam)

异常消息是算术运算导致溢出。有没有人在

解决方案

之前经历过这样的行为,我在Greenshot看到了OverflowException,在这里我研究了我到达这里。 / p>

以下是有关问题的其他信息:
在MSDN上有一些注释: https://msdn.microsoft.com/en-us/library/windows/desktop/ms632630( v = vs85).aspx
据说Windows消息不会发布在例如Windows 7,我可以确认我从来没有看到它,不能复制它。



这里还有一些信息输入语言信息是什么?: a href =http://www.siao2.com/2006/05/16/598980.aspx =nofollow> http://www.siao2.com/2006/05/16/598980.aspx



我目前认为,对于我的应用程序,消息并不重要,所以我添加了Torvin的解决方案来忽略它...


I am having an issue with a user where my application just throws and unhandled exception for no particular reason. I am not sure what is causing this as the application itself does not check nor handle anything remotely related to and Input Language change event. The exception is pretty vague as it stands with no inner exception or any other information that tells what is going on as it seems to be an arithmetic overflow exception.

Here is the exception message and stack trace:

Type:        System.OverflowException
Message:     算術演算の結果オーバーフローが発生しました。
Source:      System.Windows.Forms
Stack Trace: 場所 System.Windows.Forms.InputLanguageChangingEventArgs..ctor(InputLanguage inputLanguage, Boolean sysCharSet)
   場所 System.Windows.Forms.Control.WmInputLangChangeRequest(Message& m)
   場所 System.Windows.Forms.Control.WndProc(Message& m)
   場所 System.Windows.Forms.ButtonBase.WndProc(Message& m)
   場所 System.Windows.Forms.Button.WndProc(Message& m)
   場所 System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

The exception message is "Arithmetic operation resulted in an overflow". Has anyone experienced such behaviour before

解决方案

I have seen the "OverflowException" in Greenshot, where I researched this I arrived here.

Here is some additional information to the issue: On MSDN there are some comments to it: https://msdn.microsoft.com/en-us/library/windows/desktop/ms632630(v=vs.85).aspx It is said that the Windows-Message is not posted on e.g. Windows 7, which I can confirm I have never seen it and can't reproduce it.

Here is also some information "WHAT BROKE THE INPUT LANGUAGE MESSAGES?": http://www.siao2.com/2006/05/16/598980.aspx

I currently think that for my application the message is not important, so I added Torvin's solution to ignore it...

这篇关于算术运算导致InputLanguageChangingEventArgs中溢出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆