This game uses the Library which is provided by my school.
The same code works fine in my school's computer but not in my notebook.
I've been debuging this days after days (although not continuously)
The HRESULT returned from CreateDevice has no problem as far as I can see. (the result was 0 I think)
with the D3DCREATE_HARDWARE_VERTEXPROCESSING setting, the last trace is "pD3DDevice->Present.s"
and the screen went frozen, leaves no error messages.
with the D3DCREATE_SOFTWARE_VERTEXPROCESSING setting, it's extreamly slow. but won't freeze (maybe too slow to even not get to the point yet)
since it has no error messages and it's un-debug-able...
I've been googling for days, and still have no idea what's going on.
can anyone give me a direction, where should I start looking?
pSprite is a LPD3DXSPRITE
And this is the snippet in the gameLoop
while( LOOP ) {
if(pD3DDevice != NULL) {
pD3DDevice->Clear(0,NULL,D3DCLEAR_TARGET | D3DCLEAR_ZBUFFER,D3DCOLOR_XRGB(0,0,0),1.0f,0);
}
if(pD3DDevice != NULL) { pD3DDevice->BeginScene(); }
if(pSprite != NULL) { pSprite->Begin(D3DXSPRITE_ALPHABLEND); }
//draw something
if(pSprite != NULL){ pSprite->End(); }
if(pD3DDevice != NULL){
hc::trace("pD3DDevice->EndScene.s");
pD3DDevice->EndScene();
hc::trace("pD3DDevice->EndScene.e");
}
HRESULT hr;
if( pD3DDevice != NULL ) {
hc::trace("pD3DDevice : %d", pD3DDevice);
hc::trace("pD3DDevice->Present.s");
hr = pD3DDevice->Present(NULL,NULL,NULL,NULL);
hc::trace("pD3DDevice->Present.e");
}
}
Actually, before this happened, I had "LNK1000: Internal error during IncrBuildImage" error at every compile.
the hotfix VS90-KB948127 fixed it but still....
it could be the problem of my graphic card...
my graphic card is ATI Mobility Radeon X2300. a VAIO notebook probably 2 years old.
But then if I can create something like this with no problem in compiling and executing http://hiro4476.blog...about-demo.html
it could also be something wrong within the school's Library?
Regards, Hiro