Kamujin's picture

Input Exceptions under 64bit Windows

Project:The Open Toolkit library
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed
Description

Continuing discussion from the forums.

I have noticed a number of exceptions when I build my projects with Platform Target = Any CPU and run them under Vista x64. If I change the Platform Target to x86, the exceptions are not triggered. It seems the problem may be related to the sign bit getting moved around improperly during type conversions.

The following exception occurs when I release the shift key (right or left) on my macBookPro.

System.OverflowException occurred
Message="Arithmetic operation resulted in an overflow."
Source="mscorlib"
StackTrace:
at System.IntPtr.op_Explicit(IntPtr value)
at OpenTK.Platform.Windows.WMInput.WndProc(Message& msg) in C:\...\OpenTK\Source\OpenTK\Platform\Windows\WMInput.cs:line 147

The following exception occurs when I spin the mouse wheel backward. Small moves backward do not trigger the exception.

System.OverflowException occurred
Message="Arithmetic operation resulted in an overflow."
Source="mscorlib"
StackTrace:
at System.IntPtr.ToInt32()
at OpenTK.Platform.Windows.WMInput.WndProc(Message& msg) in C:\...\OpenTK\Source\OpenTK\Platform\Windows\WMInput.cs:line 83


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture

#1

A fix has been commited on both issues, can you please test if the error is gone?

the Fiddler's picture

#2

Status:in progress (review)» fixed

Tested and the fix seems to work fine.

Anonymous's picture

#3

Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

the Fiddler's picture

#4

Version:0.9.1»

Closing issues fixed in 0.9.2.