Click here to Skip to main content
15,891,431 members

Comments by lilesh (Top 1 by date)

lilesh 11-Feb-11 1:56am View    
i will explain in detail.

m_d3d->CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL,f_hwnd,
D3DCREATE_SOFTWARE_VERTEXPROCESSING | D3DCREATE_FPU_PRESERVE,
&l_d3dpp,m_3d_device);

is called 1st time when application initialise 1st time, that time
release is not called i.e. m_3d_device->Release() this is not called.

But when application is resize i call same method to release the
device and Create device again so that my graph will be seen
properly.(if i don't do this then graph drawn looks blur , because
device previously made is not with the same resolution, when we resize
the application. )

Now when application resize same function is called and
m_3d_device->Release()throws exception.

Some how reference count is getting 0. Temporary solution i have found .
1. comment m_3d_device->Release() line
2. Or add ref m_3d_device->AddRef before m_3d_device->Release() this
solves the problem but there is memory leak in the applicaion. just
want to mention again, this problem is not happening on all machine.
It is happening only on graphics card whose details are as follows
Card name: NVIDIA Quadro FX 580
Manufacturer: NVIDIA
Chip type: Quadro FX 580

Plz let me know wht can i don more.. it's very urgent.