IDirect3D9::CreateDevice () API leaks memory and GDI objects RRS feed

  • Question

  • We are executing IDirect3D9::CreateDevice () API in a loop, and when loop count reaches to 3, 00,000 then IDirect3D9::CreateDevice () fails with error E_OUTOFMEMORY.

    When program is executing, we found very strange behavior on different Operating Systems while looking into task manager.

    On Windows XP program show there is GDI object leaks.
    On Windows Vista / 7 programs shows memory leaks.

    Request you comment on this behaviour

    Thanks in advance. 

    • Moved by Max Wang_1983 Thursday, April 28, 2011 6:34 PM forum consolidation (From:Developer Discussions)
    Monday, November 2, 2009 12:58 PM