Page MenuHome

Closing Console Quits Entire Program
Closed, ArchivedPublic

Description

System Information
Operating system: Windows 10
Graphics card: GE Force GTX 1050

Blender Version
Broken: 2.79

Short description of error
After toggling the console on, if you exit the console window by clicking the "X" it quits the entire program, losing all of your work.

This is definitely a bug and not a feature, both simple and serious enough to fix. I get that blender is a console program, but you should have access to the readout in a separate rendered window that is safe to close.

Exact steps for others to reproduce the error
Toggle console on. Click "x" to close the window

Details

Type
Bug

Event Timeline

Brecht Van Lommel (brecht) claimed this task.

Not considered a bug currently. It's not at all simple to fix, basically the solution would be to eliminate the Windows console and implement one inside Blender itself.

This is just a Windows thing, right? Just removing the "close" button would eliminate all issues with it.

I think you just need to get the handle to the console window:
https://support.microsoft.com/en-ca/help/124103/how-to-obtain-a-console-window-handle-hwnd

Use that to get the menu on it...
HMENU hMenu = GetSystemMenu ( hwndConsole, FALSE);

Then delete the close button from the menu
DeleteMenu ( hMenu, 6, MF_BYPOSITION); // 'Close'

the solution would be to eliminate the Windows console and implement one inside Blender itself.

I like that idea a lot.
Never understood why that window exists outside of blender.