启动与DeviceCreationFlags.Debug SharpDX / DirectX的应用 [英] Launching SharpDX/DirectX app with DeviceCreationFlags.Debug

查看:469
本文介绍了启动与DeviceCreationFlags.Debug SharpDX / DirectX的应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图启动我的DirectX / SharpDX应用与 DeviceCreationFlags.Debug ,但我在启动时得到以下崩溃:

  SharpDX.SharpDXException:HRESULT:0X80004005]模块:[常规],ApiCode:[E_FAIL /未指定错误]消息:未指定的错误

。在SharpDX.Result.CheckError()
在SharpDX.Direct3D11.Device.CreateDevice(转接适配器,DriverType driverType,DeviceCreationFlags标志,FeatureLevel [] featureLevels)
在SharpDX.Direct3D11.Device..ctor(转接适配器,DeviceCreationFlags标志,FeatureLevel [] featureLevels)
在SharpDX.Toolkit.Graphics.GraphicsDevice..ctor(GraphicsAdapter适配器DeviceCreationFlags标志,FeatureLevel [] featureLevels)
在SharpDX.Toolkit.GamePlatform.CreateDevice (GraphicsDeviceInformation deviceInformation)
在SharpDX.Toolkit.GraphicsDeviceManager.CreateDevice(GraphicsDeviceInformation newInfo)
在在SharpDX.Toolkit.GraphicsDeviceManager.SharpDX.Toolkit SharpDX.Toolkit.GraphicsDeviceManager.ChangeOrCreateDevice(布尔forceCreate)
.IGraphicsDeviceManager.CreateDevice()
在SharpDX.Toolkit.Game.InitializeBeforeRun()
在SharpDX.Toolkit.GameWindowDesktop.Run()
在SharpDX.Toolkit.GamePlatform.Run(GameContext gameContext)
在SharpDX.Toolkit.Game.Run(gameContext gameContext)
在wrapper.Program.Main(字串[] args)

这是Win7的32位和我确实有June2010 DirextX编程SDK和运行时安装,以及在Windows SDK的Windows 7。



<渲染H264当 SharpDX崩溃:p>顺便说一句,这个问题源于这一个使用MediaFoundation 视频


解决方案

替代安装的SDK安装Visual Studio 2012年或更高版本。它的安装将安装这些调试库结果
在这里提到类似的问题:的链接 =>解释3


I am trying to launch my directX/SharpDX app with DeviceCreationFlags.Debug but i am getting the following crash upon startup:

SharpDX.SharpDXException: HRESULT: [0x80004005], Module: [General], ApiCode: [E_FAIL/Unspecified error], Message: Unspecified error

at SharpDX.Result.CheckError()
at SharpDX.Direct3D11.Device.CreateDevice(Adapter adapter, DriverType driverType, DeviceCreationFlags flags, FeatureLevel[] featureLevels)
at SharpDX.Direct3D11.Device..ctor(Adapter adapter, DeviceCreationFlags flags, FeatureLevel[] featureLevels)
at SharpDX.Toolkit.Graphics.GraphicsDevice..ctor(GraphicsAdapter adapter, DeviceCreationFlags flags, FeatureLevel[] featureLevels)
at SharpDX.Toolkit.GamePlatform.CreateDevice(GraphicsDeviceInformation deviceInformation)
at SharpDX.Toolkit.GraphicsDeviceManager.CreateDevice(GraphicsDeviceInformation newInfo)
at SharpDX.Toolkit.GraphicsDeviceManager.ChangeOrCreateDevice(Boolean forceCreate)
at SharpDX.Toolkit.GraphicsDeviceManager.SharpDX.Toolkit.IGraphicsDeviceManager.CreateDevice()
at SharpDX.Toolkit.Game.InitializeBeforeRun()
at SharpDX.Toolkit.GameWindowDesktop.Run()
at SharpDX.Toolkit.GamePlatform.Run(GameContext gameContext)
at SharpDX.Toolkit.Game.Run(GameContext gameContext)
at wrapper.Program.Main(String[] args)

This is on Win7 32bit and i do have the June2010 DirextX SDK and Runtime installed as well as the Windows SDK for Windows 7.

btw, this question originated from this one: SharpDX crash when rendering h264 video using MediaFoundation

解决方案

Alternative to installing the SDK is installing Visual Studio 2012 or newer. Its installation will install these debug libraries.
Similar problem was mentioned here: link => explanation 3

这篇关于启动与DeviceCreationFlags.Debug SharpDX / DirectX的应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆