(DX 2.0.0.0 April 2006) couldn't create Device ( NotAvailableException )

Hi all,

I have been using the february 2006 SDK 2.0.0.0 API in my app and really enjoyed the various changes since 1.*. However when upgrading to April 06 release, my code would still compile but wouldn't create my Device anymore...

This is the code I successfully used to create my Device (within a windows Control Form, no FullScreen) with the february API :


Answer this question

(DX 2.0.0.0 April 2006) couldn't create Device ( NotAvailableException )

  • Bill Pf

    Hi Leho,

    Sorry to disappoint you... I've added your 2 lines to my code, but the Device would still not load and throw the same exception (corresponding to the D3DERR_NOTAVAILABLE for unmanaged coders)...

    Still workin' on it, I might try to reinstall DX once more, thanks anyway...


  • ThBeer

    Problem finally solved !!

    I finally found out that for some obscur reason (may be because I use Win 2003 server), when I upgraded to the April MDX2 release, the installer disabled the hardware acceleration of my graphics card (I saw that with dxdiag).

    Obviously, with no acceleration, the Device was clearly "Not available" ... Reenabling the acceleration cost me one button click and... voila !

    I just hate all these installers' whereabouts bugs. Anyway, hope this might help others


  • Hjort

    Hi, I'm also using MDX 2 and my code looks almost exactly the same. The only difference is that I set the PresentationInterval to PresentInterval.Immediate and the BackBufferCount to 1 (both properties of the PresentParameters class), hopefully that will help...
  • (DX 2.0.0.0 April 2006) couldn't create Device ( NotAvailableException )