HRESULT CFXFileEntity::Load(std::string path)
{
HRESULT hr;
if (FAILED(hr=D3DXCreateEffectFromFile(m_d3dDevice,path.c_str(),NULL,NULL,0,NULL,&anEffect,NULL)))
return hr;
if (FAILED(hr=anEffect->FindNextValidTechnique(NULL,&hTech)))
return hr;
}
it doesn't return any hr value(???) and it crashes at this line:
if (FAILED(hr=D3DXCreateEffectFromFile(m_d3dDevice,path.c_str(),NULL,NULL,0,NULL,&anEffect,NULL)))
I've tried different simple fx files,both from RenderMonkey and from FX Composer and it always crashes,debug says the error code is
Unhandled exception at 0x546d1ea8 in GAME.exe: 0xC0000005: Access violation reading location 0xcccccccc.[/quote]
what could be causing this?