subscribeEvent crashes

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

gamecoder4
Just popping in
Just popping in
Posts: 10
Joined: Tue Feb 09, 2010 20:40

subscribeEvent crashes

Postby gamecoder4 » Tue Feb 09, 2010 20:56

Hi all
im trying to load gui from xml and it works but once i try the subscribeEvent function the app crashes. here's the code:

Code: Select all

 myRoot = WindowManager::getSingleton().loadWindowLayout( "editor2.layout" );
System::getSingleton().setGUISheet( myRoot );

WindowManager& winMgr = WindowManager::getSingleton();
 Window* window = winMgr.getWindow("editor/win/save"); // window  pointer ok!
 //window->subscribeEvent(PushButton::EventClicked, Event::Subscriber(&GUITest::handleButton, gt));  // Crash !


its hard to debug because the crash happens inside cegui dll's. version im using is 0.7.1

can any one help?

(I just searched the forums and found out others have same problem... im using VS c++ 2008 express edition)

btw if u wonder the "gt" its from this code:

Code: Select all

class GUITest
{
public:
bool handleButton(const CEGUI::EventArgs& e)
 {
  MessageBox(0,"hmmm","button clicken",MB_OK);
    return true;
 }
};

GUITest * gt = new GUITest; // in main before crash code

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: subscribeEvent crashes

Postby CrazyEddie » Wed Feb 10, 2010 09:59

Hi,

Post the CEGUI.log.
Post the exact type and other information relating to the "crash".
Obtain and post a call stack at the point of the "crash" - using the debug symbols where possible.
Link to some of these other posts with the same problem.

CE
Last edited by CrazyEddie on Wed Feb 10, 2010 11:23, edited 1 time in total.
Reason: Decided to be a little less hostile :-p

gamecoder4
Just popping in
Just popping in
Posts: 10
Joined: Tue Feb 09, 2010 20:40

Re: subscribeEvent crashes

Postby gamecoder4 » Sat Feb 13, 2010 21:57

Hi CE thanks for responding . Here they are:



Stack:

Code: Select all

>   gamevc9debug.exe!SDL_main(int argc=1, char * * argv=0x0012fee0)  Line 396 + 0x4c bytes   C++
    gamevc9debug.exe!_main()  + 0xfd bytes   C
    gamevc9debug.exe!_WinMain@16()  + 0x1cd bytes   C
    gamevc9debug.exe!__tmainCRTStartup()  Line 578 + 0x1d bytes   C
    kernel32.dll!7c817077()    
    [Frames below may be incorrect and/or missing, no symbols loaded for kernel32.dll]   


CEGUI Log:

Code: Select all

13/02/2010 23:48:50 (Std)    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
13/02/2010 23:48:50 (Std)    +                     Crazy Eddie's GUI System - Event log                    +
13/02/2010 23:48:50 (Std)    +                          (http://www.cegui.org.uk/)                         +
13/02/2010 23:48:50 (Std)    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

13/02/2010 23:48:50 (Std)    CEGUI::Logger singleton created. (00D2E5B0)
13/02/2010 23:48:50 (Std)    
13/02/2010 23:48:50 (Std)    ********************************************************************************
13/02/2010 23:48:50 (Std)    * Important:                                                                   *
13/02/2010 23:48:50 (Std)    *     To get support at the CEGUI forums, you must post _at least_ the section *
13/02/2010 23:48:50 (Std)    *     of this log file indicated below.  Failure to do this will result in no  *
13/02/2010 23:48:50 (Std)    *     support being given; please do not waste our time.                       *
13/02/2010 23:48:50 (Std)    ********************************************************************************
13/02/2010 23:48:50 (Std)    ********************************************************************************
13/02/2010 23:48:50 (Std)    * -------- START OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM       -------- *
13/02/2010 23:48:50 (Std)    ********************************************************************************
13/02/2010 23:48:50 (Std)    ---- Version 0.7.1 (Build: Oct 25 2009 Debug Microsoft Windows MSVC++ 9.0 32 bit) ----
13/02/2010 23:48:50 (Std)    ---- Renderer module is: CEGUI::OpenGLRenderer - Official OpenGL based 2nd generation renderer module.  TextureTarget support enabled via FBO extension. ----
13/02/2010 23:48:50 (Std)    ---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
13/02/2010 23:48:50 (Std)    ---- Image Codec module is: SILLYImageCodec - Official SILLY based image codec ----
13/02/2010 23:48:50 (Std)    ---- Scripting module is: None ----
13/02/2010 23:48:50 (Std)    ********************************************************************************
13/02/2010 23:48:50 (Std)    * -------- END OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM         -------- *
13/02/2010 23:48:50 (Std)    ********************************************************************************
13/02/2010 23:48:50 (Std)    
13/02/2010 23:48:50 (Std)    ---- Begining CEGUI System initialisation ----
13/02/2010 23:48:50 (Std)    CEGUI::ImagesetManager singleton created (00D2F560)
13/02/2010 23:48:50 (Std)    CEGUI::FontManager singleton created. (00D2F678)
13/02/2010 23:48:50 (Std)    CEGUI::WindowFactoryManager singleton created
13/02/2010 23:48:50 (Std)    CEGUI::WindowManager singleton created (00D22A98)
13/02/2010 23:48:50 (Std)    CEGUI::SchemeManager singleton created. (00D312C8)
13/02/2010 23:48:50 (Std)    CEGUI::MouseCursor singleton created. (00D2B5F8)
13/02/2010 23:48:50 (Std)    CEGUI::GlobalEventSet singleton created. (00D20628)
13/02/2010 23:48:50 (Std)    CEGUI::WidgetLookManager singleton created. (00D08818)
13/02/2010 23:48:50 (Std)    CEGUI::WindowRendererManager singleton created (00D21CB0)
13/02/2010 23:48:50 (Std)    Created WindowFactory for 'DefaultWindow' windows.
13/02/2010 23:48:50 (Std)    WindowFactory for 'DefaultWindow' windows added. (00D31BB8)
13/02/2010 23:48:50 (Std)    Created WindowFactory for 'DragContainer' windows.
13/02/2010 23:48:50 (Std)    WindowFactory for 'DragContainer' windows added. (00D31D78)
13/02/2010 23:48:50 (Std)    Created WindowFactory for 'ScrolledContainer' windows.
13/02/2010 23:48:50 (Std)    WindowFactory for 'ScrolledContainer' windows added. (00D31F38)
13/02/2010 23:48:50 (Std)    Created WindowFactory for 'ClippedContainer' windows.
13/02/2010 23:48:50 (Std)    WindowFactory for 'ClippedContainer' windows added. (00D320F8)
13/02/2010 23:48:50 (Std)    Created WindowFactory for 'CEGUI/Checkbox' windows.
13/02/2010 23:48:50 (Std)    WindowFactory for 'CEGUI/Checkbox' windows added. (00D322B8)
13/02/2010 23:48:50 (Std)    Created WindowFactory for 'CEGUI/PushButton' windows.
13/02/2010 23:48:50 (Std)    WindowFactory for 'CEGUI/PushButton' windows added. (00D32478)
13/02/2010 23:48:50 (Std)    Created WindowFactory for 'CEGUI/RadioButton' windows.
13/02/2010 23:48:50 (Std)    WindowFactory for 'CEGUI/RadioButton' windows added. (00D32638)
13/02/2010 23:48:50 (Std)    Created WindowFactory for 'CEGUI/Combobox' windows.
13/02/2010 23:48:50 (Std)    WindowFactory for 'CEGUI/Combobox' windows added. (00D327F8)
13/02/2010 23:48:50 (Std)    Created WindowFactory for 'CEGUI/ComboDropList' windows.
13/02/2010 23:48:50 (Std)    WindowFactory for 'CEGUI/ComboDropList' windows added. (00D329B8)
13/02/2010 23:48:50 (Std)    Created WindowFactory for 'CEGUI/Editbox' windows.
13/02/2010 23:48:50 (Std)    WindowFactory for 'CEGUI/Editbox' windows added. (00D32B78)
13/02/2010 23:48:50 (Std)    Created WindowFactory for 'CEGUI/FrameWindow' windows.
13/02/2010 23:48:50 (Std)    WindowFactory for 'CEGUI/FrameWindow' windows added. (00D32DA8)
13/02/2010 23:48:50 (Std)    Created WindowFactory for 'CEGUI/ItemEntry' windows.
13/02/2010 23:48:50 (Std)    WindowFactory for 'CEGUI/ItemEntry' windows added. (00D32F68)
13/02/2010 23:48:50 (Std)    Created WindowFactory for 'CEGUI/Listbox' windows.
13/02/2010 23:48:50 (Std)    WindowFactory for 'CEGUI/Listbox' windows added. (00D33128)
13/02/2010 23:48:50 (Std)    Created WindowFactory for 'CEGUI/ListHeader' windows.
13/02/2010 23:48:50 (Std)    WindowFactory for 'CEGUI/ListHeader' windows added. (00D332E8)
13/02/2010 23:48:50 (Std)    Created WindowFactory for 'CEGUI/ListHeaderSegment' windows.
13/02/2010 23:48:50 (Std)    WindowFactory for 'CEGUI/ListHeaderSegment' windows added. (00D334A8)
13/02/2010 23:48:50 (Std)    Created WindowFactory for 'CEGUI/Menubar' windows.
13/02/2010 23:48:50 (Std)    WindowFactory for 'CEGUI/Menubar' windows added. (00D33C48)
13/02/2010 23:48:50 (Std)    Created WindowFactory for 'CEGUI/PopupMenu' windows.
13/02/2010 23:48:50 (Std)    WindowFactory for 'CEGUI/PopupMenu' windows added. (00D33E08)
13/02/2010 23:48:50 (Std)    Created WindowFactory for 'CEGUI/MenuItem' windows.
13/02/2010 23:48:50 (Std)    WindowFactory for 'CEGUI/MenuItem' windows added. (00D33668)
13/02/2010 23:48:50 (Std)    Created WindowFactory for 'CEGUI/MultiColumnList' windows.
13/02/2010 23:48:50 (Std)    WindowFactory for 'CEGUI/MultiColumnList' windows added. (00D338C8)
13/02/2010 23:48:50 (Std)    Created WindowFactory for 'CEGUI/MultiLineEditbox' windows.
13/02/2010 23:48:50 (Std)    WindowFactory for 'CEGUI/MultiLineEditbox' windows added. (00D33B28)
13/02/2010 23:48:50 (Std)    Created WindowFactory for 'CEGUI/ProgressBar' windows.
13/02/2010 23:48:50 (Std)    WindowFactory for 'CEGUI/ProgressBar' windows added. (00D34160)
13/02/2010 23:48:50 (Std)    Created WindowFactory for 'CEGUI/ScrollablePane' windows.
13/02/2010 23:48:50 (Std)    WindowFactory for 'CEGUI/ScrollablePane' windows added. (00D34320)
13/02/2010 23:48:50 (Std)    Created WindowFactory for 'CEGUI/Scrollbar' windows.
13/02/2010 23:48:50 (Std)    WindowFactory for 'CEGUI/Scrollbar' windows added. (00D344E0)
13/02/2010 23:48:50 (Std)    Created WindowFactory for 'CEGUI/Slider' windows.
13/02/2010 23:48:50 (Std)    WindowFactory for 'CEGUI/Slider' windows added. (00D346A0)
13/02/2010 23:48:50 (Std)    Created WindowFactory for 'CEGUI/Spinner' windows.
13/02/2010 23:48:50 (Std)    WindowFactory for 'CEGUI/Spinner' windows added. (00D34860)
13/02/2010 23:48:50 (Std)    Created WindowFactory for 'CEGUI/TabButton' windows.
13/02/2010 23:48:50 (Std)    WindowFactory for 'CEGUI/TabButton' windows added. (00D34A20)
13/02/2010 23:48:50 (Std)    Created WindowFactory for 'CEGUI/TabControl' windows.
13/02/2010 23:48:50 (Std)    WindowFactory for 'CEGUI/TabControl' windows added. (00D34BE0)
13/02/2010 23:48:50 (Std)    Created WindowFactory for 'CEGUI/Thumb' windows.
13/02/2010 23:48:50 (Std)    WindowFactory for 'CEGUI/Thumb' windows added. (00D34DA0)
13/02/2010 23:48:50 (Std)    Created WindowFactory for 'CEGUI/Titlebar' windows.
13/02/2010 23:48:50 (Std)    WindowFactory for 'CEGUI/Titlebar' windows added. (00D34F60)
13/02/2010 23:48:50 (Std)    Created WindowFactory for 'CEGUI/Tooltip' windows.
13/02/2010 23:48:50 (Std)    WindowFactory for 'CEGUI/Tooltip' windows added. (00D35208)
13/02/2010 23:48:50 (Std)    Created WindowFactory for 'CEGUI/ItemListbox' windows.
13/02/2010 23:48:50 (Std)    WindowFactory for 'CEGUI/ItemListbox' windows added. (00D353C8)
13/02/2010 23:48:50 (Std)    Created WindowFactory for 'CEGUI/GroupBox' windows.
13/02/2010 23:48:50 (Std)    WindowFactory for 'CEGUI/GroupBox' windows added. (00D35588)
13/02/2010 23:48:50 (Std)    Created WindowFactory for 'CEGUI/Tree' windows.
13/02/2010 23:48:50 (Std)    WindowFactory for 'CEGUI/Tree' windows added. (00D35748)
13/02/2010 23:48:50 (Std)    Window type alias named 'DefaultGUISheet' added for window type 'DefaultWindow'.
13/02/2010 23:48:50 (Std)    CEGUI::System singleton created. (00D2E390)
13/02/2010 23:48:50 (Std)    ---- CEGUI System initialisation completed ----
13/02/2010 23:48:50 (Std)    
13/02/2010 23:48:50 (Std)    Started creation of Scheme from XML specification:
13/02/2010 23:48:50 (Std)    ---- CEGUI GUIScheme name: TaharezLook
13/02/2010 23:48:50 (Std)    Started creation of Imageset from XML specification:
13/02/2010 23:48:50 (Std)    ---- CEGUI Imageset name: TaharezLook
13/02/2010 23:48:50 (Std)    ---- Source texture file: TaharezLook.tga in resource group: (Default)
13/02/2010 23:48:50 (Std)    Started creation of Font from XML specification:
13/02/2010 23:48:50 (Std)    ---- CEGUI font name: DejaVuSans-10
13/02/2010 23:48:50 (Std)    ----       Font type: FreeType
13/02/2010 23:48:50 (Std)    ----     Source file: DejaVuSans.ttf in resource group: (Default)
13/02/2010 23:48:50 (Std)    ---- Real point size: 10
13/02/2010 23:48:51 (Std)    ===== Falagard 'root' element: look and feel parsing begins =====
13/02/2010 23:48:51 (Std)    ===== Look and feel parsing completed =====
13/02/2010 23:48:51 (Std)    No window renderer factories specified for module 'CEGUIFalagardWRBase' - adding all available factories...
13/02/2010 23:48:51 (Std)    Created WindowRendererFactory for 'Falagard/Button' WindowRenderers.
13/02/2010 23:48:51 (Std)    WindowRendererFactory 'Falagard/Button' added. (040DBB98)
13/02/2010 23:48:51 (Std)    Created WindowRendererFactory for 'Falagard/Default' WindowRenderers.
13/02/2010 23:48:51 (Std)    WindowRendererFactory 'Falagard/Default' added. (04021B50)
13/02/2010 23:48:51 (Std)    Created WindowRendererFactory for 'Falagard/Editbox' WindowRenderers.
13/02/2010 23:48:51 (Std)    WindowRendererFactory 'Falagard/Editbox' added. (040BDD90)
13/02/2010 23:48:51 (Std)    Created WindowRendererFactory for 'Falagard/FrameWindow' WindowRenderers.
13/02/2010 23:48:51 (Std)    WindowRendererFactory 'Falagard/FrameWindow' added. (040EC8B8)
13/02/2010 23:48:51 (Std)    Created WindowRendererFactory for 'Falagard/ItemEntry' WindowRenderers.
13/02/2010 23:48:51 (Std)    WindowRendererFactory 'Falagard/ItemEntry' added. (0403AFF8)
13/02/2010 23:48:51 (Std)    Created WindowRendererFactory for 'Falagard/ListHeader' WindowRenderers.
13/02/2010 23:48:51 (Std)    WindowRendererFactory 'Falagard/ListHeader' added. (00D5D9F8)
13/02/2010 23:48:51 (Std)    Created WindowRendererFactory for 'Falagard/ListHeaderSegment' WindowRenderers.
13/02/2010 23:48:51 (Std)    WindowRendererFactory 'Falagard/ListHeaderSegment' added. (040E9A60)
13/02/2010 23:48:51 (Std)    Created WindowRendererFactory for 'Falagard/Listbox' WindowRenderers.
13/02/2010 23:48:51 (Std)    WindowRendererFactory 'Falagard/Listbox' added. (00D61BE0)
13/02/2010 23:48:51 (Std)    Created WindowRendererFactory for 'Falagard/Menubar' WindowRenderers.
13/02/2010 23:48:51 (Std)    WindowRendererFactory 'Falagard/Menubar' added. (04028D80)
13/02/2010 23:48:51 (Std)    Created WindowRendererFactory for 'Falagard/MenuItem' WindowRenderers.
13/02/2010 23:48:51 (Std)    WindowRendererFactory 'Falagard/MenuItem' added. (04079818)
13/02/2010 23:48:51 (Std)    Created WindowRendererFactory for 'Falagard/MultiColumnList' WindowRenderers.
13/02/2010 23:48:51 (Std)    WindowRendererFactory 'Falagard/MultiColumnList' added. (040BEB28)
13/02/2010 23:48:51 (Std)    Created WindowRendererFactory for 'Falagard/MultiLineEditbox' WindowRenderers.
13/02/2010 23:48:51 (Std)    WindowRendererFactory 'Falagard/MultiLineEditbox' added. (00D4B248)
13/02/2010 23:48:51 (Std)    Created WindowRendererFactory for 'Falagard/PopupMenu' WindowRenderers.
13/02/2010 23:48:51 (Std)    WindowRendererFactory 'Falagard/PopupMenu' added. (04020470)
13/02/2010 23:48:51 (Std)    Created WindowRendererFactory for 'Falagard/ProgressBar' WindowRenderers.
13/02/2010 23:48:51 (Std)    WindowRendererFactory 'Falagard/ProgressBar' added. (040FA730)
13/02/2010 23:48:51 (Std)    Created WindowRendererFactory for 'Falagard/ScrollablePane' WindowRenderers.
13/02/2010 23:48:51 (Std)    WindowRendererFactory 'Falagard/ScrollablePane' added. (040FA8F0)
13/02/2010 23:48:51 (Std)    Created WindowRendererFactory for 'Falagard/Scrollbar' WindowRenderers.
13/02/2010 23:48:51 (Std)    WindowRendererFactory 'Falagard/Scrollbar' added. (040FAAB0)
13/02/2010 23:48:51 (Std)    Created WindowRendererFactory for 'Falagard/Slider' WindowRenderers.
13/02/2010 23:48:51 (Std)    WindowRendererFactory 'Falagard/Slider' added. (040FAC70)
13/02/2010 23:48:51 (Std)    Created WindowRendererFactory for 'Falagard/Static' WindowRenderers.
13/02/2010 23:48:51 (Std)    WindowRendererFactory 'Falagard/Static' added. (040208D8)
13/02/2010 23:48:51 (Std)    Created WindowRendererFactory for 'Falagard/StaticImage' WindowRenderers.
13/02/2010 23:48:51 (Std)    WindowRendererFactory 'Falagard/StaticImage' added. (04020A98)
13/02/2010 23:48:51 (Std)    Created WindowRendererFactory for 'Falagard/StaticText' WindowRenderers.
13/02/2010 23:48:51 (Std)    WindowRendererFactory 'Falagard/StaticText' added. (04020C58)
13/02/2010 23:48:51 (Std)    Created WindowRendererFactory for 'Falagard/SystemButton' WindowRenderers.
13/02/2010 23:48:51 (Std)    WindowRendererFactory 'Falagard/SystemButton' added. (04020E18)
13/02/2010 23:48:51 (Std)    Created WindowRendererFactory for 'Falagard/TabButton' WindowRenderers.
13/02/2010 23:48:51 (Std)    WindowRendererFactory 'Falagard/TabButton' added. (00D3AF68)
13/02/2010 23:48:51 (Std)    Created WindowRendererFactory for 'Falagard/TabControl' WindowRenderers.
13/02/2010 23:48:51 (Std)    WindowRendererFactory 'Falagard/TabControl' added. (00D3B128)
13/02/2010 23:48:51 (Std)    Created WindowRendererFactory for 'Falagard/Titlebar' WindowRenderers.
13/02/2010 23:48:51 (Std)    WindowRendererFactory 'Falagard/Titlebar' added. (00D3B2E8)
13/02/2010 23:48:51 (Std)    Created WindowRendererFactory for 'Falagard/ToggleButton' WindowRenderers.
13/02/2010 23:48:51 (Std)    WindowRendererFactory 'Falagard/ToggleButton' added. (00D3B4A8)
13/02/2010 23:48:51 (Std)    Created WindowRendererFactory for 'Falagard/Tooltip' WindowRenderers.
13/02/2010 23:48:51 (Std)    WindowRendererFactory 'Falagard/Tooltip' added. (040FF910)
13/02/2010 23:48:51 (Std)    Created WindowRendererFactory for 'Falagard/ItemListbox' WindowRenderers.
13/02/2010 23:48:51 (Std)    WindowRendererFactory 'Falagard/ItemListbox' added. (040FFAD0)
13/02/2010 23:48:51 (Std)    Created WindowRendererFactory for 'Falagard/Tree' WindowRenderers.
13/02/2010 23:48:51 (Std)    WindowRendererFactory 'Falagard/Tree' added. (040FFC90)
13/02/2010 23:48:51 (Std)    Creating falagard mapping for type 'TaharezLook/Button' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/Button'. (0012B314)
13/02/2010 23:48:51 (Std)    Creating falagard mapping for type 'TaharezLook/Checkbox' using base type 'CEGUI/Checkbox', window renderer 'Falagard/ToggleButton' and Look'N'Feel 'TaharezLook/Checkbox'. (0012B314)
13/02/2010 23:48:51 (Std)    Creating falagard mapping for type 'TaharezLook/ImageButton' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/ImageButton'. (0012B314)
13/02/2010 23:48:51 (Std)    Creating falagard mapping for type 'TaharezLook/RadioButton' using base type 'CEGUI/RadioButton', window renderer 'Falagard/ToggleButton' and Look'N'Feel 'TaharezLook/RadioButton'. (0012B314)
13/02/2010 23:48:51 (Std)    Creating falagard mapping for type 'TaharezLook/FrameWindow' using base type 'CEGUI/FrameWindow', window renderer 'Falagard/FrameWindow' and Look'N'Feel 'TaharezLook/FrameWindow'. (0012B314)
13/02/2010 23:48:51 (Std)    Creating falagard mapping for type 'TaharezLook/Titlebar' using base type 'CEGUI/Titlebar', window renderer 'Falagard/Titlebar' and Look'N'Feel 'TaharezLook/Titlebar'. (0012B314)
13/02/2010 23:48:51 (Std)    Creating falagard mapping for type 'TaharezLook/SystemButton' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/Button'. (0012B314)
13/02/2010 23:48:51 (Std)    Creating falagard mapping for type 'TaharezLook/Editbox' using base type 'CEGUI/Editbox', window renderer 'Falagard/Editbox' and Look'N'Feel 'TaharezLook/Editbox'. (0012B314)
13/02/2010 23:48:51 (Std)    Creating falagard mapping for type 'TaharezLook/MultiLineEditbox' using base type 'CEGUI/MultiLineEditbox', window renderer 'Falagard/MultiLineEditbox' and Look'N'Feel 'TaharezLook/MultiLineEditbox'. (0012B314)
13/02/2010 23:48:51 (Std)    Creating falagard mapping for type 'TaharezLook/Menubar' using base type 'CEGUI/Menubar', window renderer 'Falagard/Menubar' and Look'N'Feel 'TaharezLook/Menubar'. (0012B314)
13/02/2010 23:48:51 (Std)    Creating falagard mapping for type 'TaharezLook/PopupMenu' using base type 'CEGUI/PopupMenu', window renderer 'Falagard/PopupMenu' and Look'N'Feel 'TaharezLook/PopupMenu'. (0012B314)
13/02/2010 23:48:51 (Std)    Creating falagard mapping for type 'TaharezLook/MenuItem' using base type 'CEGUI/MenuItem', window renderer 'Falagard/MenuItem' and Look'N'Feel 'TaharezLook/MenuItem'. (0012B314)
13/02/2010 23:48:51 (Std)    Creating falagard mapping for type 'TaharezLook/AlternateProgressBar' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' and Look'N'Feel 'TaharezLook/AltProgressBar'. (0012B314)
13/02/2010 23:48:51 (Std)    Creating falagard mapping for type 'TaharezLook/ProgressBar' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' and Look'N'Feel 'TaharezLook/ProgressBar'. (0012B314)
13/02/2010 23:48:51 (Std)    Creating falagard mapping for type 'TaharezLook/VUMeter' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' and Look'N'Feel 'TaharezLook/VUMeter'. (0012B314)
13/02/2010 23:48:51 (Std)    Creating falagard mapping for type 'TaharezLook/VerticalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' and Look'N'Feel 'TaharezLook/VerticalScrollbar'. (0012B314)
13/02/2010 23:48:51 (Std)    Creating falagard mapping for type 'TaharezLook/HorizontalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' and Look'N'Feel 'TaharezLook/HorizontalScrollbar'. (0012B314)
13/02/2010 23:48:51 (Std)    Creating falagard mapping for type 'TaharezLook/VerticalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/VerticalScrollbarThumb'. (0012B314)
13/02/2010 23:48:51 (Std)    Creating falagard mapping for type 'TaharezLook/HorizontalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/HorizontalScrollbarThumb'. (0012B314)
13/02/2010 23:48:51 (Std)    Creating falagard mapping for type 'TaharezLook/LargeVerticalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' and Look'N'Feel 'TaharezLook/LargeVerticalScrollbar'. (0012B314)
13/02/2010 23:48:51 (Std)    Creating falagard mapping for type 'TaharezLook/LargeVerticalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/LargeVerticalScrollbarThumb'. (0012B314)
13/02/2010 23:48:51 (Std)    Creating falagard mapping for type 'TaharezLook/TabButton' using base type 'CEGUI/TabButton', window renderer 'Falagard/TabButton' and Look'N'Feel 'TaharezLook/TabButton'. (0012B314)
13/02/2010 23:48:51 (Std)    Creating falagard mapping for type 'TaharezLook/TabControl' using base type 'CEGUI/TabControl', window renderer 'Falagard/TabControl' and Look'N'Feel 'TaharezLook/TabControl'. (0012B314)
13/02/2010 23:48:51 (Std)    Creating falagard mapping for type 'TaharezLook/TabContentPane' using base type 'DefaultWindow', window renderer 'Falagard/Default' and Look'N'Feel 'TaharezLook/TabContentPane'. (0012B314)
13/02/2010 23:48:51 (Std)    Creating falagard mapping for type 'TaharezLook/TabButtonPane' using base type 'DefaultWindow', window renderer 'Falagard/Default' and Look'N'Feel 'TaharezLook/TabButtonPane'. (0012B314)
13/02/2010 23:48:51 (Std)    Creating falagard mapping for type 'TaharezLook/ComboDropList' using base type 'CEGUI/ComboDropList', window renderer 'Falagard/Listbox' and Look'N'Feel 'TaharezLook/ComboDropList'. (0012B314)
13/02/2010 23:48:51 (Std)    Creating falagard mapping for type 'TaharezLook/ComboEditbox' using base type 'CEGUI/Editbox', window renderer 'Falagard/Editbox' and Look'N'Feel 'TaharezLook/ComboEditbox'. (0012B314)
13/02/2010 23:48:51 (Std)    Creating falagard mapping for type 'TaharezLook/Combobox' using base type 'CEGUI/Combobox', window renderer 'Falagard/Default' and Look'N'Feel 'TaharezLook/Combobox'. (0012B314)
13/02/2010 23:48:51 (Std)    Creating falagard mapping for type 'TaharezLook/Listbox' using base type 'CEGUI/Listbox', window renderer 'Falagard/Listbox' and Look'N'Feel 'TaharezLook/Listbox'. (0012B314)
13/02/2010 23:48:51 (Std)    Creating falagard mapping for type 'TaharezLook/ListHeader' using base type 'CEGUI/ListHeader', window renderer 'Falagard/ListHeader' and Look'N'Feel 'TaharezLook/ListHeader'. (0012B314)
13/02/2010 23:48:51 (Std)    Creating falagard mapping for type 'TaharezLook/ListHeaderSegment' using base type 'CEGUI/ListHeaderSegment', window renderer 'Falagard/ListHeaderSegment' and Look'N'Feel 'TaharezLook/ListHeaderSegment'. (0012B314)
13/02/2010 23:48:51 (Std)    Creating falagard mapping for type 'TaharezLook/MultiColumnList' using base type 'CEGUI/MultiColumnList', window renderer 'Falagard/MultiColumnList' and Look'N'Feel 'TaharezLook/MultiColumnList'. (0012B314)
13/02/2010 23:48:51 (Std)    Creating falagard mapping for type 'TaharezLook/Slider' using base type 'CEGUI/Slider', window renderer 'Falagard/Slider' and Look'N'Feel 'TaharezLook/Slider'. (0012B314)
13/02/2010 23:48:51 (Std)    Creating falagard mapping for type 'TaharezLook/SliderThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/SliderThumb'. (0012B314)
13/02/2010 23:48:51 (Std)    Creating falagard mapping for type 'TaharezLook/ScrollablePane' using base type 'CEGUI/ScrollablePane', window renderer 'Falagard/ScrollablePane' and Look'N'Feel 'TaharezLook/ScrollablePane'. (0012B314)
13/02/2010 23:48:51 (Std)    Creating falagard mapping for type 'TaharezLook/Spinner' using base type 'CEGUI/Spinner', window renderer 'Falagard/Default' and Look'N'Feel 'TaharezLook/Spinner'. (0012B314)
13/02/2010 23:48:51 (Std)    Creating falagard mapping for type 'TaharezLook/Tooltip' using base type 'CEGUI/Tooltip', window renderer 'Falagard/Tooltip' and Look'N'Feel 'TaharezLook/Tooltip'. (0012B314)
13/02/2010 23:48:51 (Std)    Creating falagard mapping for type 'TaharezLook/StaticImage' using base type 'DefaultWindow', window renderer 'Falagard/StaticImage' and Look'N'Feel 'TaharezLook/StaticImage'. (0012B314)
13/02/2010 23:48:51 (Std)    Creating falagard mapping for type 'TaharezLook/StaticText' using base type 'DefaultWindow', window renderer 'Falagard/StaticText' and Look'N'Feel 'TaharezLook/StaticText'. (0012B314)
13/02/2010 23:48:51 (Std)    Creating falagard mapping for type 'TaharezLook/ItemListbox' using base type 'CEGUI/ItemListbox', window renderer 'Falagard/ItemListbox' and Look'N'Feel 'TaharezLook/ItemListbox'. (0012B314)
13/02/2010 23:48:51 (Std)    Creating falagard mapping for type 'TaharezLook/ListboxItem' using base type 'CEGUI/ItemEntry', window renderer 'Falagard/ItemEntry' and Look'N'Feel 'TaharezLook/ListboxItem'. (0012B314)
13/02/2010 23:48:51 (Std)    Creating falagard mapping for type 'TaharezLook/GroupBox' using base type 'CEGUI/GroupBox', window renderer 'Falagard/Default' and Look'N'Feel 'TaharezLook/GroupBox'. (0012B314)
13/02/2010 23:48:51 (Std)    Creating falagard mapping for type 'TaharezLook/Tree' using base type 'CEGUI/Tree', window renderer 'Falagard/Tree' and Look'N'Feel 'TaharezLook/Tree'. (0012B314)
13/02/2010 23:48:51 (Std)    Started creation of Font from XML specification:
13/02/2010 23:48:51 (Std)    ---- CEGUI font name: DejaVuSans-10
13/02/2010 23:48:51 (Std)    ----       Font type: FreeType
13/02/2010 23:48:51 (Std)    ----     Source file: DejaVuSans.ttf in resource group: (Default)
13/02/2010 23:48:51 (Std)    ---- Real point size: 10
13/02/2010 23:48:51 (Std)    ---- Returning existing instance of Font named 'DejaVuSans-10'.
13/02/2010 23:48:51 (Std)    ---- Successfully completed loading of GUI layout from 'editor2.layout' ----

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: subscribeEvent crashes

Postby CrazyEddie » Sun Feb 14, 2010 09:37

Thanks for the log and such. You still don't mention the exact crash/exception you're experiencing (such as access violation, or whatever). These issues are really hard to try and resolve from far away like this - because the only information we have is that which you provide, so the more info you provide, the better chance there is of spotting the issue.

Anyway, I believe the issue is that you are linking your application to the c/c++ runtime statically (/MT and /MTd options), whereas you are linking CEGUI dynamically - which uses the dll c/c++ runtime (/MD and /MDd options). When composing an application you should ensure that all components are linked using the same c/c++ runtime settings otherwise you end up with heap corruption issues - so the simplest solution here is to change the runtime setting of your app to use the multithreaded DLL runtime (in the IDE it's under the 'Code Generation...' options for C++ in the properties for the project, IIRC) and do a full clean and rebuild.

HTH

CE.

gamecoder4
Just popping in
Just popping in
Posts: 10
Joined: Tue Feb 09, 2010 20:40

Re: subscribeEvent crashes

Postby gamecoder4 » Sun Feb 14, 2010 17:30

Hi ty CE!

CrazyEddie wrote:, so the more info you provide, the better chance there is of spotting the issue.

the error message box says:

Unhandled exception at 0x0041c3af in gamevc9debug.exe: 0xC0000005: Access violation reading location 0x00000008.

CrazyEddie wrote: so the simplest solution here is to change the runtime setting of your app to use the multithreaded DLL runtime


it was already multithreaded DLL. i couldnt have set it to debug multithreaded DLL however because then i get some weird app startup errors. but it crashes in both debug and release.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: subscribeEvent crashes

Postby CrazyEddie » Sun Feb 14, 2010 19:19

Hi,

i couldnt have set it to debug multithreaded DLL however because then i get some weird app startup errors.

These are issues you will need to resolve (ignore the Ogre reference, but see this: viewtopic.php?f=10&t=4653), because the runtime in use must match for all components. This means debug versions in debug mode and release versions in release mode - otherwise you will get these types of issue, and there is no other resolution.

but it crashes in both debug and release.

This is a whole other issue, and is likely our fault ;) Basically the original 0.7.1 SDK (which it seems you're using) had an incorrect configuration in which the 'release' versions were linked to the debug c/c++ runtime (see, we do it too :P). The SDK was reissued with the correct config, so you might like to re-download the package in order to get this fixed version of the release libs.

CE.

gamecoder4
Just popping in
Just popping in
Posts: 10
Joined: Tue Feb 09, 2010 20:40

Re: subscribeEvent crashes

Postby gamecoder4 » Mon Feb 15, 2010 16:24

thanks CE! It works now, the new binaries fixed it.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 21 guests