alt+tab error using directx9

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
Pr3t3nd3r
Posts: 186
Joined: Tue Feb 08, 2005 6:02 pm
Location: Romania
Contact:

alt+tab error using directx9

Post 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 ...
Galactic Dream Best RTS game
http://www.rageofwar.net
Engage in epic galactic warfare, guide your people through the galaxy! in the real time strategy game made with Irrlicht
http://www.evolutionvault.com
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post 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.
Pr3t3nd3r
Posts: 186
Joined: Tue Feb 08, 2005 6:02 pm
Location: Romania
Contact:

Post by Pr3t3nd3r »

give me the link to the other discussion. I already searched all the forum and i didn't find any thing.
Galactic Dream Best RTS game
http://www.rageofwar.net
Engage in epic galactic warfare, guide your people through the galaxy! in the real time strategy game made with Irrlicht
http://www.evolutionvault.com
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

I think hybrid is referring to this topic...
Post Reply