Going back to windowed when an exception occurs

What it says on the tin: a place to discuss proposed new features.
Post Reply
User avatar
boola
Silver Sponsor
Silver Sponsor
Posts: 25
Joined: Mon Feb 07, 2005 12:19 am
Location: Paris, France

Going back to windowed when an exception occurs

Post by boola »

Hi,
Could it be possible that ogre automatically switches back to windowed mode when an exception occurs in fullscreen mode?

I don't know if it's specific to win (xp sp2) or if it does it on linuxes too.
It's a little bit annoying since you can't see the exception dialog.

Not a big deal though, when it happens i just hit 'enter' and restart in windowed mode 8)
Also it might be a little frightening for newcomers trying some demos or simple beta-testers because it doesn't feels like a clean engine shutdown.

cheers,
alex
User avatar
:wumpus:
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 3067
Joined: Tue Feb 10, 2004 12:53 pm
Location: The Netherlands
x 1

Post by :wumpus: »

It shouldn't go to windowed mode on a fatal exception, minimizing or even destroying the render window would be better.

You control this yourself; Ogre doesn't catch the exceptions anywhere and doesn't display message boxes, your program does (probably in main() if you copied the example framework).
User avatar
boola
Silver Sponsor
Silver Sponsor
Posts: 25
Joined: Mon Feb 07, 2005 12:19 am
Location: Paris, France

Post by boola »

It shouldn't go to windowed mode on a fatal exception, minimizing or even destroying the render window would be better.
I agree it's more logical...
You control this yourself; Ogre doesn't catch the exceptions anywhere and doesn't display message boxes, your program does (probably in main() if you copied the example framework).
Off course, you're right, don't know what i was thinking!

However, "minimizing or even destroying the render window" could be the default behaviour for the demos and/or the examples.. No?
User avatar
:wumpus:
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 3067
Joined: Tue Feb 10, 2004 12:53 pm
Location: The Netherlands
x 1

Post by :wumpus: »

Yes, it could be. Patches are welcome :-)
Post Reply