void RR_Font::SetDevice(LPDIRECT3DDEVICE8 pDevice)
{
if (pDevice != NULL) // Valid device
m_pDevice = pDevice; // Copy LPDIRECT3DDEVICE8 object
}
"m_pDevice = pDevice" ... Causing access violation??
I have made a few posts already today, and I have another problem. I got the CD3DFont class working, but it won''t draw text. I made a function in my game''s font class like this:
But when I run in debug mode, it says there''s an access violation on the line "m_pDevice = pDevice". The ''pDevice'' object is valid. What''s wrong here?
Generally this would happen if the "this" pointer is invalid; in other words, the object has not been properly contructed before your method is called.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement