Delta Engine
»
Support
»
Engine
»
Missing SharpDX.DirectInput - why?
Joined: 8/30/2013(UTC) Posts: 43
Thanks: 11 times Was thanked: 1 time(s) in 1 post(s)
|
Hi, when I run my DE project from MSVS it runs fine. But when I run it either from debug or release folder manually, it throws an exception: Code:System.IO.FileNotFoundException: Could not load file or assembly SharpDX.DirectInput, Version=2.5.0.0, Culture=neutral, PublicKeyToken=627a3d6d1956f55a.
I've tried to add NuGet package SharpDX.DirectInput dependency to project manually, but it fails on another exception: Code:SharpDX.SharpDXException: HRESULT: [0x80070006], Module: [General], ApiCode: [E_HANDLE/Invalid handle], Message: Invalid handle.
v SharpDX.Result.CheckError()
v SharpDX.DirectInput.Device.SetCooperativeLevel(IntPtr arg0, CooperativeLevel arg1)
v DeltaEngine.Input.SharpDX.SharpDXKeyboard.CreateNativeKeyboard()
v DeltaEngine.Input.SharpDX.SharpDXKeyboard..ctor(Window window)
v lambda_method(Closure , Object[] )
v Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
What am I possible doing wrong?
|
|
|
|
Medals:  Joined: 8/24/2011(UTC) Posts: 138 Location: Hannover
Thanks: 1 times Was thanked: 12 time(s) in 7 post(s)
|
Are you using the source code or NuGet version? |
|
|
|
|
Joined: 8/30/2013(UTC) Posts: 43
Thanks: 11 times Was thanked: 1 time(s) in 1 post(s)
|
|
|
|
|
Medals:  Joined: 8/20/2011(UTC) Posts: 1,421 Location: Hannover
Thanks: 18 times Was thanked: 97 time(s) in 92 post(s)
|
The first error looks like DirectX is not installed. The second one is an unsupported call when initializing your keyboard (which could be related to an outdated DirectX version). Please make sure DirectX or SharpDX is installed and start a sample from it, then try again with the Delta Engine. Thanks.
|
|
|
|
Joined: 8/30/2013(UTC) Posts: 43
Thanks: 11 times Was thanked: 1 time(s) in 1 post(s)
|
Why should it work in debug mode from MSVS and not work when I run it directly from exe? My DirectX version is already the newest. SharpDX was updated from NuGet together with DE.
|
|
|
|
Delta Engine
»
Support
»
Engine
»
Missing SharpDX.DirectInput - why?
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.