Archived

This topic is now archived and is closed to further replies.

shakazed

Unhandled exception

Recommended Posts

shakazed    138
Whenever I get to "gpD3dDevice->Clear(0,NULL, D3DCLEAR_TARGET, D3DCOLOR_XRGB(0,0,255), 1.0f,0)" in my dx code I get the "Unhandled Exception" error in the debug. Any clues??? <>

Share this post


Link to post
Share on other sites
evolutional    1393
gpD3dDevice is probably NULL.

Are you sure you've not typo'd from g_pD3dDevice?

If no, then call

    
if (g_pD3dDevice != NULL)
gpD3dDevice->Clear(0, NULL, D3DCLEAR_TARGET, D3DCOLOR_XRGB(0,0,255), 1.0f, 0);



Oli



All the best problems start with C

The Most Boring Website Ever?

Edited by - downgraded on February 8, 2002 10:15:39 AM

Share this post


Link to post
Share on other sites