title: D3DERR_INVALIDCALL: Invalid call (-2005530516)
body: <p>I seem to be getting an error when testing on my WinXP(SP3) PC. The error is below but I don't get it when using my Win7 laptop.</p>
  
  <pre><code>D3DERR_INVALIDCALL: Invalid call (-2005530516)
  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)
  </code></pre>
  
  <p>The code that is causes the error is:</p>
  
  <pre><code>using (var d3d = new Direct3D())
  {
  using (var tmpDevice = new Device(d3d, 0, DeviceType.Hardware, IntPtr.Zero, CreateFlags.HardwareVertexProcessing, new PresentParameters() { BackBufferWidth = 1, BackBufferHeight = 1 }))
  {
  //I have some code here also but this doesn't even get here
  }
  }
  </code></pre>
  
  <p>As far as I'm aware the crash is to do with creating the new device.</p>