Page MenuHome

Fix for console disappearing in debug mode [Windows]
Closed, ArchivedPublicPATCH

Description

Reported by Kupoman. Thanks!

If you start blender in debug [-d] mode without [-con] in Windows, console will be hidden. This doesn't make sense.

Attached patch fixes this behavior.

Event Timeline

Alex, did you manage to move the console code to GHOST already? Or do you think I should first apply this patch...

I attached new patch.
Console Toggle now is in Ghost. Also it fixes this bug [#26981]
Console becomes visible by destroying System class.

Also fixed Alt bug by dismissing WM_SYSCOMMAND. [#26938]

btw, freopen() doesn't work in Blender due to Python bug
http://bugs.python.org/issue10080

Added final patch.

It restores focus if Blender is still active and it loses focus to nowhere.

In GHOST_ISystem.h
virtual int toggleConsole(int action) = 0;
actually should be
virtual int toggleConsole(int action) {return 0;};
Sorry for that.

Applied and committed in r36426. Thanks a lot!

Nathan Letwory (jesterking) changed the task status from Unknown Status to Unknown Status.May 2 2011, 10:08 AM