sharpdx / SharpDX

SharpDX GitHub Repository
http://sharpdx.org
MIT License
1.69k stars 641 forks source link

[RawInput] SharpDX.RawInput.Device.GetDevices throws "System.NullReferenceException". #1037

Closed SergeyBaryshev closed 6 years ago

SergeyBaryshev commented 6 years ago

With 4.1.0 update this method throws an exception at anywhere and anytime. I thought it is on my end. But I create a new empty project from Windows Forms template and add only two references to SharpDX and SharpDX.RawInput. I wrote just one line (VB.NET): Public my_value As List(Of SharpDX.RawInput.DeviceInfo) = SharpDX.RawInput.Device.GetDevices Guess what... on 4.0.1 its perfect!