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.