Page 1 of 1

alt+tab error using directx9

Posted: Fri Sep 22, 2006 9:25 am
by Pr3t3nd3r
after alt+tab the engine is not getting back to the game ....

I added:
s32 er = pID3DDevice->Reset(&present);
switch ( er)
{
case D3DERR_DEVICELOST: os::Printer::log("The device has been lost but cannot be reset at this time. Therefore, rendering is not possible. ", ELL_WARNING);
break;
case D3DERR_DRIVERINTERNALERROR:os::Printer::log("Internal driver error. Applications should generally shut down when receiving this error. For more information, see Driver Internal Errors.", ELL_WARNING);
break;
case D3DERR_INVALIDCALL: os::Printer::log("he method call is invalid. For example, a method's parameter may have an invalid value.", ELL_WARNING);
break;
case D3DERR_OUTOFVIDEOMEMORY: os::Printer::log("Direct3D does not have enough display memory to perform the operation. ", ELL_WARNING);
break;
case E_OUTOFMEMORY: os::Printer::log("Resetting no mem.", ELL_WARNING);
break;
}
return false;
}
and the result is:
he method call is invalid. For example, a method's parameter may have an invalid value
But i think the parameters are OK... because they are the one with what the device was created ...

Posted: Fri Sep 22, 2006 10:06 am
by hybrid
I think you missed a blank between the case target: and os::Printer. But this issue has also been discussed in another thread about a week ago.

Posted: Fri Sep 22, 2006 12:47 pm
by Pr3t3nd3r
give me the link to the other discussion. I already searched all the forum and i didn't find any thing.

Posted: Fri Sep 22, 2006 3:49 pm
by vitek
I think hybrid is referring to this topic...