Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline Matasx  
#1 Posted : Sunday, October 27, 2013 11:12:25 PM(UTC)
Matasx

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?

Wanna join the discussion?! Login to your forum accountregister a new account. Or Connect via Facebook Twitter Google

Offline mc-kay  
#2 Posted : Monday, October 28, 2013 11:02:32 AM(UTC)
mc-kay

Medals: Admin

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?
Offline Matasx  
#3 Posted : Monday, October 28, 2013 11:37:41 AM(UTC)
Matasx

Joined: 8/30/2013(UTC)
Posts: 43

Thanks: 11 times
Was thanked: 1 time(s) in 1 post(s)
NuGet.
Offline Benjamin  
#4 Posted : Monday, October 28, 2013 1:46:42 PM(UTC)
Benjamin

Medals: Admin

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.
Offline Matasx  
#5 Posted : Tuesday, October 29, 2013 2:47:31 PM(UTC)
Matasx

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.
Rss Feed  Atom Feed
Users browsing this topic
OceanSpiders 2.0
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.

Powered by YAF.NET | YAF.NET © 2003-2023, Yet Another Forum.NET
This page was generated in 0.068 seconds.