HeavenWu / slimdx

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

Error in Samples (Release version: June 2010) #714

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Every time I try to debug Direct3D9 based samples it gives the following error 
when the compiler calles the Device class(SlimDX.Direct3D9.public 
Device(Direct3D direct3D, int adapter, DeviceType deviceType, IntPtr 
controlHandle, CreateFlags createFlags, params PresentParameters[] 
presentParameters)).

"D3DERR_INVALIDCALL: Invalid call (-2005530516)"

The detail information about the error is given below.

SlimDX.Direct3D9.Direct3D9Exception was unhandled
  Message="D3DERR_INVALIDCALL: Invalid call (-2005530516)"
  Source="SlimDX"
  StackTrace:
       at SlimDX.Result.Throw[T](Object dataKey, Object dataValue)
       at SlimDX.Result.Record[T](Int32 hr, Boolean failed, Object dataKey, Object dataValue)
       at SlimDX.Direct3D9.Device..ctor(Direct3D direct3D, Int32 adapter, DeviceType deviceType, IntPtr controlHandle, CreateFlags createFlags, PresentParameters[] presentParameters)
       at SlimDX.SampleFramework.DeviceContext9..ctor(IntPtr handle, DeviceSettings9 settings) in F:\Program Files\SlimDX SDK (June 2010)\Samples\SlimDX Samples (June 2010)\SampleFramework\Rendering\DeviceContext9.cs:line 62
       at SlimDX.SampleFramework.Sample.InitializeDevice(DeviceSettings9 settings) in F:\Program Files\SlimDX SDK (June 2010)\Samples\SlimDX Samples (June 2010)\SampleFramework\Sample.cs:line 231
       at SimpleTriangle9.SimpleTriangle9Sample.OnInitialize() in F:\Program Files\SlimDX SDK (June 2010)\Samples\SlimDX Samples (June 2010)\Direct3D9\SimpleTriangle9\SimpleTriangleSample9.cs:line 44
       at SlimDX.SampleFramework.Sample.Run() in F:\Program Files\SlimDX SDK (June 2010)\Samples\SlimDX Samples (June 2010)\SampleFramework\Sample.cs:line 154
       at SimpleTriangle9.Program.Main() in F:\Program Files\SlimDX SDK (June 2010)\Samples\SlimDX Samples (June 2010)\Direct3D9\SimpleTriangle9\Program.cs:line 36
       at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException: 

I am not sure that this is a problem of SlimDX itself. Because of that I am 
giving the informations about my debugger and display device.

Debugger: Microsoft Visual Studio 2008(C#)
Display Device: Intel(R) 82945G Express Chipset Family
        Driver Name: igxprd32.dll
        Driver Version: 6.14.10.4926

Any solutions?
Thanks........

Original issue reported on code.google.com by shifatac...@gmail.com on 20 Aug 2010 at 4:05

GoogleCodeExporter commented 8 years ago
Sounds like either your display hardware doesn't support the requested settings 
or you have driver issues, or both. Try updating your drivers and see if that 
helps.

If not, make sure your graphics card supports the display settings requested 
when the device is created. Also take a look at the debug runtimes; they should 
give more information on the reasons behind an InvalidCall.

Either way, not really a SlimDX issue. Try posting on the forums if you still 
can't figure it out.

Original comment by Mike.Popoloski on 21 Aug 2010 at 2:53