Changeset 13757


Ignore:
Timestamp:
05/16/12 13:41:06 (13 years ago)
Author:
tbretz
Message:
Another try to fix the root-makes-the-gui-sometimes-crash problem.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/gui/fact.cc

    r13640 r13757  
    11#include "FactGui.h"
    22
     3#include <TQtWidget.h>
    34#include <TSystem.h>
    45
     
    7374    QApplication app(argc, const_cast<char**>(argv));
    7475
    75     cout << "--- Instaniating GUI ---" << endl;
     76    cout << "--- Working around a root bug ---" << endl;
     77    {
     78        // It seems sometimes TGQt::RegisterWid is called before
     79        // fWidgetArray is initialized, so we force that to happen here
     80        TQtWidget(NULL);
     81        cout << "LD_LIBRARY_PATH=" << gSystem->GetDynamicPath() << endl;
     82    }
    7683
     84    cout << "--- Instantiating GUI ---" << endl;
    7785    FactGui gui(conf);
    7886
Note: See TracChangeset for help on using the changeset viewer.