Villacaleb / slimdx

Automatically exported from code.google.com/p/slimdx
MIT License
0 stars 0 forks source link

Direct3D11.Device.GetSupportedFeatureLevel() throws exception #682

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When calling Device.GetSupportedFeatureLevel() in Direct3D 11, I get a
crash with the following exception details:

Message: E_INVALIDARG: An invalid parameter was passed to the returning
function (-2147024809)

Stack Trace:
   at SlimDX.Result.Throw[T](Object dataKey, Object dataValue)
   at SlimDX.Result.Record[T](Int32 hr, Boolean failed, Object dataKey,
Object dataValue)
   at SlimDX.Result.Record[T](Int32 hr, Object dataKey, Object dataValue)
   at SlimDX.Direct3D11.Device.GetSupportedFeatureLevel()
   at DX11Fun.Form1.Form1_Load(Object sender, EventArgs e) in
C:\Users\Matt\core\DX11Fun\DX11Fun\Form1.cs:line 39

I am calling the function like so:
FeatureLevel f = Device.GetSupportedFeatureLevel ();

System configuration:
Windows 7 Professional x64
Visual Studio 2010
.NET 4.0 (with the 2.0 runtime exception added in App.config so SlimDX can
load)

Intel Core 2 Quad Q9550 (no OC'ing)
8GB RAM
GeForce GTX 260 216 Core

Original issue reported on code.google.com by teganthe...@gmail.com on 4 Jun 2010 at 11:43

GoogleCodeExporter commented 9 years ago
Are you using the latest version from SVN?

Original comment by josh.petrie on 7 Jun 2010 at 3:17

GoogleCodeExporter commented 9 years ago
Nope, with the latest SVN this works. Got the latest SVN and compiled it with 
VS2010 and this call works now.

Original comment by teganthe...@gmail.com on 8 Jun 2010 at 3:06

GoogleCodeExporter commented 9 years ago

Original comment by josh.petrie on 8 Jun 2010 at 3:55