Misterious crash under windows

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

User avatar
rogerdv
Quite a regular
Quite a regular
Posts: 62
Joined: Thu Mar 31, 2005 23:21
Contact:

Misterious crash under windows

Postby rogerdv » Wed Jul 20, 2011 13:30

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?

Jamarr
CEGUI MVP
CEGUI MVP
Posts: 812
Joined: Tue Jun 03, 2008 23:59
Location: USA

Re: Misterious crash under windows

Postby Jamarr » Thu Jul 21, 2011 15:30

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:
If somebody helps you by replying to your thread, upvote him/her as a thanks! Make sure to include your CEGUI.log and everything you tried when posting! And remember that we are not magicians!

User avatar
rogerdv
Quite a regular
Quite a regular
Posts: 62
Joined: Thu Mar 31, 2005 23:21
Contact:

Re: Misterious crash under windows

Postby rogerdv » Thu Jul 21, 2011 15:58

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.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 7 guests