Skip to content

Commit 8800d79

Browse files
committed
BWM diag: log allocateNewWindow null
1 parent d188d5a commit 8800d79

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GameWindowManager.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
// with to interact with the game windowing system.
3030
///////////////////////////////////////////////////////////////////////////////////////////////////
3131

32-
#include "PreRTS.h" // This must go first in EVERY cpp file in the GameEngine
32+
#include "PreRTS.h"
33+
#include <stdio.h> // This must go first in EVERY cpp file in the GameEngine
3334

3435
#include "Common/Debug.h"
3536
#include "Common/Language.h"
@@ -1339,7 +1340,7 @@ GameWindow *GameWindowManager::winCreate( GameWindow *parent,
13391340
if( window == nullptr )
13401341
{
13411342

1342-
DEBUG_LOG(( "WinCreate error: Could not allocate new window" ));
1343+
DEBUG_LOG(( "WinCreate error: Could not allocate new window" )); { FILE *_bwmf=fopen("bwm_diag.txt","a"); if(_bwmf){ fprintf(_bwmf,"winCreate NULL\n"); fclose(_bwmf); } }
13431344
#ifndef FINAL
13441345
{
13451346
GameWindow *win;

0 commit comments

Comments
 (0)