Page 1 of 1

How can i restore device lost when using CEGUI and OgreD3D9R

Posted: Thu Jul 14, 2005 13:50
by williamchow
hi, I have a problem, cannot restore device lost, when i use OGRE(1.0.3 version) and CEGUI(0.3.0).

Thanks everybody who give me advice.

Following is description:

First, i run Demo_gui.exe application in fullscreen mode using OgreD3D9RenderSystem.
Second, i change to other application.
Third, i change back to Demo_gui.exe.

Then, An Exception is throwed everytime.

Details of Exception:
Error #:5
Function:D3D9RenderWindow:restoreLostDevice
Description: Cannot reset device : Invalid call
File: \Ogrenew\RenderSystem\Direct3D9\src\OgreD3D9RenderSystem.cpp
line 2614
Stack unwinding<<beginning of stack>>

I am developping game using CEGUI and OGRE. i meet the problem also.

How can i restore device lost when using CEGUI and OgreD3D9RenderSystem? Thanks

Re: How can i restore device lost when using CEGUI and OgreD

Posted: Mon Aug 01, 2005 16:21
by thumperj
I am actively working this issue, too. We have a major product release that is being held up by this problem.

As Sinbad has noted, this problem is specific to CEGUI. The Ogre examples do not exhibit this behavior so something about mixing CEGUI and Ogre together makes the cocktail unstable. Here's a thread on the Ogre forums that discusses the problem (but with no solution):
http://www.ogre3d.org/phpBB2/viewtopic. ... highlight=

If anyone has solved this problem could they please post what they have done?

Thanks,
Chris