【发布时间】:2013-11-06 11:07:45
【问题描述】:
我正在尝试使用 DeviceCreationFlags.Debug 启动我的 directX/SharpDX 应用程序,但我在启动时遇到以下崩溃:
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)
这是在 Win7 32 位上,我确实安装了 June2010 DirextX SDK 和 Runtime 以及适用于 Windows 7 的 Windows SDK。
顺便说一句,这个问题起源于这个:SharpDX crash when rendering h264 video using MediaFoundation
【问题讨论】:
-
从您的问题来看,我认为它可以在没有调试标志的情况下工作?
-
是的,它在没有调试标志的情况下运行。
标签: c# directx-11 directx-9 sharpdx