title: Get SharpDXException Invalid Parameters when try to create a new Texture for DirectX 9 on 32bit NVidia Quadro M1000M
body: <p>I created a control that render over WPF using SharpDX. The code runs fine in most computer, video cards and configurations.. </p>
  
  <p>However, I am having issues when the app using the component is compiled for X86 and used in a NVIDIA Quadro M1000M or in AMD Radeon R5 430. If the app is compile in x64 all works fine.</p>
  
  <p>This is what I am using:</p>
  
  <pre><code> format = SharpDX.Direct3D9.Format.A8R8G8B8;
   //target.Description.Width = 10,  target.Description.Height = 10.
   this.renderTarget = new SharpDX.Direct3D9.Texture(WPFImageSource.device, target.Description.Width, target.Description.Height, 1, Usage.RenderTarget, format, Pool.Default, ref handle);
  </code></pre>
  
  <p>Any idea will be welcome.
  Edit: This is the exception details:</p>
  
  <pre><code>Exception Setup D3D Enviroment: SharpDX.SharpDXException: HRESULT: [0x80070057], Module: [General], ApiCode: [E_INVALIDARG/Invalid Arguments], Message: The parameter is incorrect.
  
     at SharpDX.Result.CheckError() in C:\projects\sharpdx\Source\SharpDX\Result.cs:line 195
     at SharpDX.Direct3D9.Device.CreateTexture(Int32 width, Int32 height, Int32 levels, Int32 usage, Format format, Pool pool, Texture textureOut, IntPtr sharedHandleRef) in C:\projects\sharpdx\Source\SharpDX.Direct3D9\Generated\Interfaces.cs:line 5089
     at SharpDX.Direct3D9.Texture..ctor(Device device, Int32 width, Int32 height, Int32 levelCount, Usage usage, Format format, Pool pool, IntPtr&amp; sharedHandle) in C:\projects\sharpdx\Source\SharpDX.Direct3D9\Texture.cs:line 65
     at EV3D.Rendering.WPFImageSource.SetRenderTarget(Texture2D target) in D:\projects\ev3dsdk\EVRenderer_WPF\WPFImageSource.cs:line 118
  Exception Setup D3D Enviroment: SharpDX.SharpDXException: HRESULT: [0x80070057], Module: [General], ApiCode: [E_INVALIDARG/Invalid Arguments], Message: The parameter is incorrect.
  
     at EV3D.Rendering.WPFImageSource.SetRenderTarget(Texture2D target) in D:\projects\ev3dsdk\EVRenderer_WPF\WPFImageSource.cs:line 131
     at EV3D.Rendering.EVRenderContext.CreateAndBindTargets() in D:\projects\ev3dsdk\EVRenderer_WPF\EVRenderContext.cs:line 420
     at EV3D.Rendering.EVRenderContext.StartD3D() in D:\projects\ev3dsdk\EVRenderer_WPF\EVRenderContext.cs:line 276
  </code></pre>