Page 1 of 1

Misterious crash under windows

Posted: Wed Jul 20, 2011 13:30
by rogerdv
Im facing a really annoying problem with my windows port, seems that CEGUI cant assign the window I used to load the layout as the GUI sheet. Here is the code:

Code: Select all

inline bool loadLayout(const char* layout)
    {
   CEGUI::WindowManager& winMgr = CEGUI::WindowManager::getSingleton();

        gRoot = winMgr.loadWindowLayout(layout);
        if (gRoot) {         
            CEGUI::System::getSingleton().setGUISheet(gRoot);   <<-- Here is the problem
      gRoot->setMousePassThroughEnabled(true);

            return true ;
        }
        return false;
    }


The code works perfectly under Linux. So far I havent been able to gather more information, as the Debug version of the project doesnt runs because of some cryptic Windows error. I also tried the sampleas approach, using an image as background and the assigning the layout window as child. Any idea?

Re: Misterious crash under windows

Posted: Thu Jul 21, 2011 15:30
by Jamarr
CEGUI Forum Usage Guidelines wrote:viewtopic.php?f=6&t=3358
...
  • Always post your CEGUI log (by default 'CEGUI.log' in the working directory). Even if you check the log and there are no obvious errors, posting the log can still be of use.
  • Post your system information, all error messages, compiler errors, code and as much other information as possible.
  • Do not just say "It's crashed, what's wrong?" Post debugging information including error / exception messages and the callstack / backtrace with debugging symbols.
...


Posting your CEGUI version info, the CEGUI log file, the cryptic windows error, basically /any and all/ info you have, and in particular the exception-message I assume is being thrown but not caught, would be a good start :hammer:

Re: Misterious crash under windows

Posted: Thu Jul 21, 2011 15:58
by rogerdv
The CEGUI log file is normal. No errors are logged there, simply ends after ---- Successfully completed loading of GUI layout from 'ark.layout' ----. There is no exception, Windows 7 just says that the application was closed, no more. I will add today some exception management to see if there is one being thrown. Also, I will get the error message in the Debug version, which is a long number without further explanation.