Resources for IT Professionals > Forums Home > Microsoft Research Forums > Developer Discussions > IDirect3D9::CreateDevice () API leaks memory and GDI objects
Ask a questionAsk a question
 

QuestionIDirect3D9::CreateDevice () API leaks memory and GDI objects

  • Monday, November 02, 2009 12:58 PMdevender_sys Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    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.