I added text box on a picture, typed in several words. Then I am pressing Ctrl+1 (in my case this combination switches input language to english, Ctrl+2 = ukrainian, Ctrl+3 = russian) and I am getting this exception.
Software version: 18.104.22.168-RELEASE-359dcf30f24ef0257b3b319f729e0eb81106c37e (64 bit)
.NET runtime version: 4.0.30319.34209+
Time: 2015-08-06 14:08:03 +03:00
OS: unknown Enterprise (x64) 6.3 build 9600 revision 0
GDI object count: 197
User object count: 120
Surface count: 1
Message: Arithmetic operation resulted in an overflow.
at System.Windows.Forms.InputLanguageChangingEventArgs..ctor(InputLanguage inputLanguage, Boolean sysCharSet)
at System.Windows.Forms.Control.WmInputLangChangeRequest(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.TextBox.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
I can't add messages to JIRA.
I am a programmer. Got an idea - maybe not very clever one, but I'd rather
tell it to you instead of not tell.
What if you make the code like this (in a pseudo-code):
h = CreateDialog();
if (h >= 0x7FFFFFFF)
while(h >= 0x7FFFFFFF)
so that prior showing it, we will kill the dialog box in the case if handle
has higher bit set and will try to re-create it again.
Again: I don't know how stupid is this. But if creating a dialog is not a
complicated operation, that may work.
On Fri, Aug 21, 2015 at 5:37 PM, Robin Krom (JIRA) <
After I understood the thing that was suggested at stackoverflow, I implemented & added the message filter in Greenshot 1.3.
Trying to create a dialog in a loop will cause so many bad effects that it is a bad idea...
I am currently trying to see how I can test this correctly, if this works I might bring out a bug-fix for 1.2 without much news... working on 1.3 with a speed which I don't want to pause.
Found out that the error, other rather the messages that causes the error, doesn't show on Windows 7.
I found some additional information here:
As Greenshot doesn't need the message, it's okay to filter them out... just need to be able to test the fix before I roll it out.
Will see if the error does again show on Windows 10 later, I currently don't have a Windows 8.1 at al.
Cleaning up our Jira...
This was solved for ages, sorry about that.