Subscribing events

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

Eralp
Just popping in
Just popping in
Posts: 10
Joined: Fri Apr 24, 2009 17:23

Subscribing events

Postby Eralp » Wed Apr 29, 2009 21:47

Hi, I really have a problem with subscribing events.I searched and found a solution in which you should recompile ur dll's with some option(that I dont understand). But isn't there any other solution?

Code: Select all

bool Engine::BaglanButton(const CEGUI::EventArgs& args)
{
   BaglanMenu();
   return 1;
}

void Engine::RegisterEvents()
{
using namespace CEGUI;
PushButton * baglan = static_cast<PushButton*>(System::getSingleton().getGUISheet()->getChild("Root/Anamenu")->getChild("Root/Anamenu/Button1"));
baglan->subscribeEvent(PushButton::EventClicked,CEGUI::Event::Subscriber(&Engine::BaglanButton,this));
}


Here is my code which is about registering.I guess everyting seems right.. It compiles well too.
I am compiling it in release mode and the error I get is;

Unhandled exception at 0x0042483b in app.exe: 0xC0000005: Access violation reading location 0x00000039.


What could be the problem ?


edit: When I run the program in debug mode and use debug libraries, then it runs without a problem ..
edit 2: If i link to debug libraries and run it in release mode it also runs fine =) would this cause further problems or is it ok to go on like that?

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

Re: Subscribing events

Postby CrazyEddie » Fri May 01, 2009 08:36

Hi,

Which were the posts that mention about the recompile and option you don't understand?

The code looks good to me, where does the exception occur exactly? Is it at the time of subscription,, when the event handler gets called, or at some other time? Obviously being a "release mode" only thing makes it harder to debug, so liberal usage of diagnostic output messages (std::cout, printf, or CEGUI::Logger::logEvent) is highly encouraged in order to ascertain precisely where and when the issue is arising.

With regards to 'edit2', that's not really what you want to be doing ;) I'm actually surprised it runs like that, are you static linking or something (I thought not since you mention recompiling dlls)?

CE.

Eralp
Just popping in
Just popping in
Posts: 10
Joined: Fri Apr 24, 2009 17:23

Re: Subscribing events

Postby Eralp » Sat May 02, 2009 19:43

The exception occurs exactly by the time I call this line:

baglan->subscribeEvent(PushButton::EventClicked,CEGUI::Event::Subscriber(&Engine::BaglanButton,this));

I was not static linking.

But uh I have made it work while I am writing this post, I think I didn't ignore default library LIBCMTD.
To help the others, could have this been my problem ?

lymantok
Not too shy to talk
Not too shy to talk
Posts: 39
Joined: Sun May 13, 2007 03:24

Re: Subscribing events

Postby lymantok » Sat Jul 25, 2009 03:28

Hi,

I am getting an exception in CEGUI on the subscribe event call in the code below:

CEGUI::PushButton* m_pButtonNew;
m_pButtonNew = static_cast<CEGUI::PushButton*>(m_pWmgr->getWindow( "Root/Frame/ButtonNew" ));
m_pButtonNew->subscribeEvent( CEGUI::PushButton::EventClicked, CEGUI::Event::Subscriber( &CGUI::HandleButton, this ) );

The HandleButton function takes 1 argument and returns true (for now). This code seems to match the tutorial for event subscription, so I'm not sure what's wrong. Can anyone help me out?

Thx!

PS. CEGUI.log:

24/07/2009 20:22:19 (Std) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
24/07/2009 20:22:19 (Std) + Crazy Eddie's GUI System - Event log +
24/07/2009 20:22:19 (Std) + (http://www.cegui.org.uk/) +
24/07/2009 20:22:19 (Std) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

24/07/2009 20:22:19 (Std) CEGUI::Logger singleton created. (00BDAB28)
24/07/2009 20:22:19 (Std) ---- Begining CEGUI System initialisation ----
24/07/2009 20:22:19 (Std) CEGUI::ImagesetManager singleton created (00BD1460)
24/07/2009 20:22:19 (Std) CEGUI::FontManager singleton created. (00BDAB00)
24/07/2009 20:22:19 (Std) CEGUI::WindowFactoryManager singleton created
24/07/2009 20:22:19 (Std) CEGUI::WindowManager singleton created (00BD9E50)
24/07/2009 20:22:19 (Std) CEGUI::SchemeManager singleton created. (00BD1488)
24/07/2009 20:22:19 (Std) CEGUI::MouseCursor singleton created. (003BF3C0)
24/07/2009 20:22:19 (Std) CEGUI::GlobalEventSet singleton created. (00BD2108)
24/07/2009 20:22:19 (Std) CEGUI::WidgetLookManager singleton created. (00BD2138)
24/07/2009 20:22:19 (Std) CEGUI::WindowRendererManager singleton created (003BDCB8)
24/07/2009 20:22:19 (Std) WindowFactory for 'DefaultWindow' windows added. (00639778)
24/07/2009 20:22:19 (Std) WindowFactory for 'DragContainer' windows added. (00639818)
24/07/2009 20:22:19 (Std) WindowFactory for 'ScrolledContainer' windows added. (006398B8)
24/07/2009 20:22:19 (Std) WindowFactory for 'ClippedContainer' windows added. (00639958)
24/07/2009 20:22:19 (Std) WindowFactory for 'CEGUI/Checkbox' windows added. (006399F8)
24/07/2009 20:22:19 (Std) WindowFactory for 'CEGUI/PushButton' windows added. (0063A358)
24/07/2009 20:22:19 (Std) WindowFactory for 'CEGUI/RadioButton' windows added. (0063A3F8)
24/07/2009 20:22:19 (Std) WindowFactory for 'CEGUI/Combobox' windows added. (00639B38)
24/07/2009 20:22:19 (Std) WindowFactory for 'CEGUI/ComboDropList' windows added. (00639A98)
24/07/2009 20:22:19 (Std) WindowFactory for 'CEGUI/Editbox' windows added. (00639BD8)
24/07/2009 20:22:19 (Std) WindowFactory for 'CEGUI/FrameWindow' windows added. (00639C78)
24/07/2009 20:22:19 (Std) WindowFactory for 'CEGUI/ItemEntry' windows added. (00639D18)
24/07/2009 20:22:19 (Std) WindowFactory for 'CEGUI/Listbox' windows added. (00639EF8)
24/07/2009 20:22:19 (Std) WindowFactory for 'CEGUI/ListHeader' windows added. (00639DB8)
24/07/2009 20:22:19 (Std) WindowFactory for 'CEGUI/ListHeaderSegment' windows added. (00639E58)
24/07/2009 20:22:19 (Std) WindowFactory for 'CEGUI/Menubar' windows added. (0063A038)
24/07/2009 20:22:19 (Std) WindowFactory for 'CEGUI/PopupMenu' windows added. (0063A218)
24/07/2009 20:22:19 (Std) WindowFactory for 'CEGUI/MenuItem' windows added. (00639F98)
24/07/2009 20:22:19 (Std) WindowFactory for 'CEGUI/MultiColumnList' windows added. (0063A0D8)
24/07/2009 20:22:19 (Std) WindowFactory for 'CEGUI/MultiLineEditbox' windows added. (0063A178)
24/07/2009 20:22:19 (Std) WindowFactory for 'CEGUI/ProgressBar' windows added. (0063A2B8)
24/07/2009 20:22:19 (Std) WindowFactory for 'CEGUI/ScrollablePane' windows added. (0063A498)
24/07/2009 20:22:19 (Std) WindowFactory for 'CEGUI/Scrollbar' windows added. (0063A538)
24/07/2009 20:22:19 (Std) WindowFactory for 'CEGUI/Slider' windows added. (0063A5D8)
24/07/2009 20:22:19 (Std) WindowFactory for 'CEGUI/Spinner' windows added. (0063A678)
24/07/2009 20:22:19 (Std) WindowFactory for 'CEGUI/TabButton' windows added. (0063A718)
24/07/2009 20:22:19 (Std) WindowFactory for 'CEGUI/TabControl' windows added. (0063A7B8)
24/07/2009 20:22:19 (Std) WindowFactory for 'CEGUI/Thumb' windows added. (0063A858)
24/07/2009 20:22:19 (Std) WindowFactory for 'CEGUI/Titlebar' windows added. (0063A8F8)
24/07/2009 20:22:19 (Std) WindowFactory for 'CEGUI/Tooltip' windows added. (0063A998)
24/07/2009 20:22:19 (Std) WindowFactory for 'CEGUI/ItemListbox' windows added. (0063AA38)
24/07/2009 20:22:19 (Std) WindowFactory for 'CEGUI/GroupBox' windows added. (0063AAD8)
24/07/2009 20:22:19 (Std) WindowFactory for 'CEGUI/Tree' windows added. (0063AB78)
24/07/2009 20:22:19 (Std) Window type alias named 'DefaultGUISheet' added for window type 'DefaultWindow'.
24/07/2009 20:22:19 (Std) CEGUI::System singleton created. (003C7550)
24/07/2009 20:22:19 (Std) ---- CEGUI System initialisation completed ----
24/07/2009 20:22:19 (Std) ---- Version 0.6.2 ----
24/07/2009 20:22:19 (Std) ---- Renderer module is: CEGUI::IrrlichtRenderer - Official Irrlicht based renderer module for CEGUI ----
24/07/2009 20:22:19 (Std) ---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
24/07/2009 20:22:19 (Std) ---- Scripting module is: None ----
24/07/2009 20:22:19 (Std) Attempting to create an Imageset from the information specified in file 'D:/Personal/FITG-source-code/datafiles/imagesets/AquaLook.imageset'.
24/07/2009 20:22:19 (Std) Started creation of Imageset from XML specification:
24/07/2009 20:22:19 (Std) ---- CEGUI Imageset name: AquaLook
24/07/2009 20:22:19 (Std) ---- Source texture file: D:\Personal\FITG-source-code\datafiles\imagesets\AquaLook.png in resource group: (Default)
24/07/2009 20:22:19 (Std) Attempting to create Font from the information specified in file 'D:/Personal/FITG-source-code/datafiles/fonts/bluehighway-12.font'.
24/07/2009 20:22:19 (Std) Started creation of FreeType Font:
24/07/2009 20:22:19 (Std) ---- CEGUI font name: BlueHighway-12
24/07/2009 20:22:19 (Std) ---- Source file: D:/Personal/FITG-source-code/datafiles/fonts/bluehigh.ttf in resource group: (Default)
24/07/2009 20:22:19 (Std) ---- Real point size: 12
24/07/2009 20:22:19 (Std) Succsessfully loaded 289 glyphs
24/07/2009 20:22:19 (Std) ===== Falagard 'root' element: look and feel parsing begins =====
24/07/2009 20:22:19 (Std) ===== Look and feel parsing completed =====
24/07/2009 20:22:19 (Std) Attempting to load Scheme from file 'D:/Personal/FITG-source-code/datafiles/schemes/AquaLookSkin.scheme'.
24/07/2009 20:22:19 (Std) Attempting to create Font from the information specified in file 'D:/Personal/FITG-source-code/datafiles/fonts/bluehighway-10.font'.
24/07/2009 20:22:19 (Std) Started creation of FreeType Font:
24/07/2009 20:22:19 (Std) ---- CEGUI font name: BlueHighway-10
24/07/2009 20:22:19 (Std) ---- Source file: D:/Personal/FITG-source-code/datafiles/fonts/bluehigh.ttf in resource group: (Default)
24/07/2009 20:22:19 (Std) ---- Real point size: 10
24/07/2009 20:22:19 (Std) Succsessfully loaded 289 glyphs
24/07/2009 20:22:19 (Std) Attempting to create Font from the information specified in file 'D:/Personal/FITG-source-code/datafiles/fonts/bluehighway-8.font'.
24/07/2009 20:22:19 (Std) Started creation of FreeType Font:
24/07/2009 20:22:19 (Std) ---- CEGUI font name: BlueHighway-8
24/07/2009 20:22:19 (Std) ---- Source file: D:/Personal/FITG-source-code/datafiles/fonts/bluehigh.ttf in resource group: (Default)
24/07/2009 20:22:19 (Std) ---- Real point size: 8
24/07/2009 20:22:19 (Std) Succsessfully loaded 289 glyphs
24/07/2009 20:22:19 (Std) ===== Falagard 'root' element: look and feel parsing begins =====
24/07/2009 20:22:19 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'AquaLook/Button' already exists. Replacing previous definition.
24/07/2009 20:22:19 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'AquaLook/RadioButton' already exists. Replacing previous definition.
24/07/2009 20:22:19 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'AquaLook/Checkbox' already exists. Replacing previous definition.
24/07/2009 20:22:19 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'AquaLook/Editbox' already exists. Replacing previous definition.
24/07/2009 20:22:19 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'AquaLook/Titlebar' already exists. Replacing previous definition.
24/07/2009 20:22:19 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'AquaLook/FrameWindow' already exists. Replacing previous definition.
24/07/2009 20:22:19 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'AquaLook/ProgressBar' already exists. Replacing previous definition.
24/07/2009 20:22:19 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'AquaLook/SliderThumb' already exists. Replacing previous definition.
24/07/2009 20:22:19 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'AquaLook/SliderHorizThumb' already exists. Replacing previous definition.
24/07/2009 20:22:19 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'AquaLook/Slider' already exists. Replacing previous definition.
24/07/2009 20:22:19 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'AquaLook/SliderHoriz' already exists. Replacing previous definition.
24/07/2009 20:22:19 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'AquaLook/HorizontalScrollbarThumb' already exists. Replacing previous definition.
24/07/2009 20:22:19 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'AquaLook/HorizontalScrollbar' already exists. Replacing previous definition.
24/07/2009 20:22:19 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'AquaLook/VerticalScrollbarThumb' already exists. Replacing previous definition.
24/07/2009 20:22:19 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'AquaLook/VerticalScrollbar' already exists. Replacing previous definition.
24/07/2009 20:22:19 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'AquaLook/Listbox' already exists. Replacing previous definition.
24/07/2009 20:22:19 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'AquaLook/ComboDropList' already exists. Replacing previous definition.
24/07/2009 20:22:19 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'AquaLook/ComboEditbox' already exists. Replacing previous definition.
24/07/2009 20:22:19 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'AquaLook/Combobox' already exists. Replacing previous definition.
24/07/2009 20:22:19 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'AquaLook/Spinner' already exists. Replacing previous definition.
24/07/2009 20:22:19 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'AquaLook/StaticShared' already exists. Replacing previous definition.
24/07/2009 20:22:19 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'AquaLook/StaticImage' already exists. Replacing previous definition.
24/07/2009 20:22:19 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'AquaLook/StaticText' already exists. Replacing previous definition.
24/07/2009 20:22:19 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'AquaLook/ListHeaderSegment' already exists. Replacing previous definition.
24/07/2009 20:22:19 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'AquaLook/ListHeader' already exists. Replacing previous definition.
24/07/2009 20:22:19 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'AquaLook/MultiColumnList' already exists. Replacing previous definition.
24/07/2009 20:22:19 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'AquaLook/MultiLineEditbox' already exists. Replacing previous definition.
24/07/2009 20:22:19 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'AquaLook/Tooltip' already exists. Replacing previous definition.
24/07/2009 20:22:19 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'AquaLook/ScrollablePane' already exists. Replacing previous definition.
24/07/2009 20:22:19 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'AquaLook/TabButton' already exists. Replacing previous definition.
24/07/2009 20:22:19 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'AquaLook/TabContentPane' already exists. Replacing previous definition.
24/07/2009 20:22:19 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'AquaLook/TabButtonPane' already exists. Replacing previous definition.
24/07/2009 20:22:19 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'AquaLook/TabControl' already exists. Replacing previous definition.
24/07/2009 20:22:19 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'AquaLook/MenuItem' already exists. Replacing previous definition.
24/07/2009 20:22:19 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'AquaLook/PopupMenu' already exists. Replacing previous definition.
24/07/2009 20:22:19 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'AquaLook/Menubar' already exists. Replacing previous definition.
24/07/2009 20:22:19 (Std) WidgetLookManager::addWidgetLook - Widget look and feel 'AquaLook/ImageButton' already exists. Replacing previous definition.
24/07/2009 20:22:19 (Std) ===== Look and feel parsing completed =====
24/07/2009 20:22:19 (Std) No window renderer factories specified for module 'CEGUIFalagardWRBase' - adding all available factories...
24/07/2009 20:22:19 (Std) WindowRendererFactory 'Falagard/Button' added. (0120E538)
24/07/2009 20:22:19 (Std) WindowRendererFactory 'Falagard/Default' added. (0120E718)
24/07/2009 20:22:19 (Std) WindowRendererFactory 'Falagard/Editbox' added. (0120D778)
24/07/2009 20:22:19 (Std) WindowRendererFactory 'Falagard/FrameWindow' added. (0120E678)
24/07/2009 20:22:19 (Std) WindowRendererFactory 'Falagard/ItemEntry' added. (0120DC78)
24/07/2009 20:22:19 (Std) WindowRendererFactory 'Falagard/ListHeader' added. (0120D638)
24/07/2009 20:22:19 (Std) WindowRendererFactory 'Falagard/ListHeaderSegment' added. (0120D9F8)
24/07/2009 20:22:19 (Std) WindowRendererFactory 'Falagard/Listbox' added. (0120E358)
24/07/2009 20:22:19 (Std) WindowRendererFactory 'Falagard/Menubar' added. (0120DA98)
24/07/2009 20:22:19 (Std) WindowRendererFactory 'Falagard/MenuItem' added. (0120DF98)
24/07/2009 20:22:19 (Std) WindowRendererFactory 'Falagard/MultiColumnList' added. (0120DE58)
24/07/2009 20:22:19 (Std) WindowRendererFactory 'Falagard/MultiLineEditbox' added. (0120D6D8)
24/07/2009 20:22:19 (Std) WindowRendererFactory 'Falagard/PopupMenu' added. (0120E2B8)
24/07/2009 20:22:19 (Std) WindowRendererFactory 'Falagard/ProgressBar' added. (0120DB38)
24/07/2009 20:22:19 (Std) WindowRendererFactory 'Falagard/ScrollablePane' added. (0120E3F8)
24/07/2009 20:22:19 (Std) WindowRendererFactory 'Falagard/Scrollbar' added. (0120E218)
24/07/2009 20:22:19 (Std) WindowRendererFactory 'Falagard/Slider' added. (0120E498)
24/07/2009 20:22:19 (Std) WindowRendererFactory 'Falagard/Static' added. (0120E178)
24/07/2009 20:22:19 (Std) WindowRendererFactory 'Falagard/StaticImage' added. (0120E5D8)
24/07/2009 20:22:19 (Std) WindowRendererFactory 'Falagard/StaticText' added. (0120DEF8)
24/07/2009 20:22:19 (Std) WindowRendererFactory 'Falagard/SystemButton' added. (0120DBD8)
24/07/2009 20:22:19 (Std) WindowRendererFactory 'Falagard/TabButton' added. (0120DD18)
24/07/2009 20:22:19 (Std) WindowRendererFactory 'Falagard/TabControl' added. (0120D8B8)
24/07/2009 20:22:19 (Std) WindowRendererFactory 'Falagard/Titlebar' added. (0120E0D8)
24/07/2009 20:22:19 (Std) WindowRendererFactory 'Falagard/ToggleButton' added. (0120D958)
24/07/2009 20:22:19 (Std) WindowRendererFactory 'Falagard/Tooltip' added. (0120D818)
24/07/2009 20:22:19 (Std) WindowRendererFactory 'Falagard/ItemListbox' added. (0120E038)
24/07/2009 20:22:19 (Std) WindowRendererFactory 'Falagard/Tree' added. (0120DDB8)
24/07/2009 20:22:19 (Std) Creating falagard mapping for type 'AquaLook/Button' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' and Look'N'Feel 'AquaLook/Button'. (0012DBC0)
24/07/2009 20:22:19 (Std) Creating falagard mapping for type 'AquaLook/Checkbox' using base type 'CEGUI/Checkbox', window renderer 'Falagard/ToggleButton' and Look'N'Feel 'AquaLook/Checkbox'. (0012DBC0)
24/07/2009 20:22:19 (Std) Creating falagard mapping for type 'AquaLook/ImageButton' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' and Look'N'Feel 'AquaLook/ImageButton'. (0012DBC0)
24/07/2009 20:22:19 (Std) Creating falagard mapping for type 'AquaLook/RadioButton' using base type 'CEGUI/RadioButton', window renderer 'Falagard/ToggleButton' and Look'N'Feel 'AquaLook/RadioButton'. (0012DBC0)
24/07/2009 20:22:19 (Std) Creating falagard mapping for type 'AquaLook/FrameWindow' using base type 'CEGUI/FrameWindow', window renderer 'Falagard/FrameWindow' and Look'N'Feel 'AquaLook/FrameWindow'. (0012DBC0)
24/07/2009 20:22:19 (Std) Creating falagard mapping for type 'AquaLook/Titlebar' using base type 'CEGUI/Titlebar', window renderer 'Falagard/Titlebar' and Look'N'Feel 'AquaLook/Titlebar'. (0012DBC0)
24/07/2009 20:22:19 (Std) Creating falagard mapping for type 'AquaLook/SystemButton' using base type 'CEGUI/PushButton', window renderer 'Falagard/SystemButton' and Look'N'Feel 'AquaLook/Button'. (0012DBC0)
24/07/2009 20:22:19 (Std) Creating falagard mapping for type 'AquaLook/Editbox' using base type 'CEGUI/Editbox', window renderer 'Falagard/Editbox' and Look'N'Feel 'AquaLook/Editbox'. (0012DBC0)
24/07/2009 20:22:19 (Std) Creating falagard mapping for type 'AquaLook/MultiLineEditbox' using base type 'CEGUI/MultiLineEditbox', window renderer 'Falagard/MultiLineEditbox' and Look'N'Feel 'AquaLook/MultiLineEditbox'. (0012DBC0)
24/07/2009 20:22:19 (Std) Creating falagard mapping for type 'AquaLook/Menubar' using base type 'CEGUI/Menubar', window renderer 'Falagard/Menubar' and Look'N'Feel 'AquaLook/Menubar'. (0012DBC0)
24/07/2009 20:22:19 (Std) Creating falagard mapping for type 'AquaLook/PopupMenu' using base type 'CEGUI/PopupMenu', window renderer 'Falagard/PopupMenu' and Look'N'Feel 'AquaLook/PopupMenu'. (0012DBC0)
24/07/2009 20:22:19 (Std) Creating falagard mapping for type 'AquaLook/MenuItem' using base type 'CEGUI/MenuItem', window renderer 'Falagard/MenuItem' and Look'N'Feel 'AquaLook/MenuItem'. (0012DBC0)
24/07/2009 20:22:19 (Std) Creating falagard mapping for type 'AquaLook/ProgressBar' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' and Look'N'Feel 'AquaLook/ProgressBar'. (0012DBC0)
24/07/2009 20:22:19 (Std) Creating falagard mapping for type 'AquaLook/VerticalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' and Look'N'Feel 'AquaLook/VerticalScrollbar'. (0012DBC0)
24/07/2009 20:22:19 (Std) Creating falagard mapping for type 'AquaLook/HorizontalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' and Look'N'Feel 'AquaLook/HorizontalScrollbar'. (0012DBC0)
24/07/2009 20:22:19 (Std) Creating falagard mapping for type 'AquaLook/VerticalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' and Look'N'Feel 'AquaLook/VerticalScrollbarThumb'. (0012DBC0)
24/07/2009 20:22:19 (Std) Creating falagard mapping for type 'AquaLook/HorizontalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' and Look'N'Feel 'AquaLook/HorizontalScrollbarThumb'. (0012DBC0)
24/07/2009 20:22:19 (Std) Creating falagard mapping for type 'AquaLook/TabButton' using base type 'CEGUI/TabButton', window renderer 'Falagard/TabButton' and Look'N'Feel 'AquaLook/TabButton'. (0012DBC0)
24/07/2009 20:22:19 (Std) Creating falagard mapping for type 'AquaLook/TabControl' using base type 'CEGUI/TabControl', window renderer 'Falagard/TabControl' and Look'N'Feel 'AquaLook/TabControl'. (0012DBC0)
24/07/2009 20:22:19 (Std) Creating falagard mapping for type 'AquaLook/TabContentPane' using base type 'DefaultWindow', window renderer 'Falagard/Default' and Look'N'Feel 'AquaLook/TabContentPane'. (0012DBC0)
24/07/2009 20:22:19 (Std) Creating falagard mapping for type 'AquaLook/TabButtonPane' using base type 'DefaultWindow', window renderer 'Falagard/Default' and Look'N'Feel 'AquaLook/TabButtonPane'. (0012DBC0)
24/07/2009 20:22:19 (Std) Creating falagard mapping for type 'AquaLook/ComboDropList' using base type 'CEGUI/ComboDropList', window renderer 'Falagard/Listbox' and Look'N'Feel 'AquaLook/ComboDropList'. (0012DBC0)
24/07/2009 20:22:19 (Std) Creating falagard mapping for type 'AquaLook/ComboEditbox' using base type 'CEGUI/Editbox', window renderer 'Falagard/Editbox' and Look'N'Feel 'AquaLook/ComboEditbox'. (0012DBC0)
24/07/2009 20:22:19 (Std) Creating falagard mapping for type 'AquaLook/Combobox' using base type 'CEGUI/Combobox', window renderer 'Falagard/Default' and Look'N'Feel 'AquaLook/Combobox'. (0012DBC0)
24/07/2009 20:22:19 (Std) Creating falagard mapping for type 'AquaLook/Listbox' using base type 'CEGUI/Listbox', window renderer 'Falagard/Listbox' and Look'N'Feel 'AquaLook/Listbox'. (0012DBC0)
24/07/2009 20:22:19 (Std) Creating falagard mapping for type 'AquaLook/ListHeader' using base type 'CEGUI/ListHeader', window renderer 'Falagard/ListHeader' and Look'N'Feel 'AquaLook/ListHeader'. (0012DBC0)
24/07/2009 20:22:19 (Std) Creating falagard mapping for type 'AquaLook/ListHeaderSegment' using base type 'CEGUI/ListHeaderSegment', window renderer 'Falagard/ListHeaderSegment' and Look'N'Feel 'AquaLook/ListHeaderSegment'. (0012DBC0)
24/07/2009 20:22:19 (Std) Creating falagard mapping for type 'AquaLook/MultiColumnList' using base type 'CEGUI/MultiColumnList', window renderer 'Falagard/MultiColumnList' and Look'N'Feel 'AquaLook/MultiColumnList'. (0012DBC0)
24/07/2009 20:22:19 (Std) Creating falagard mapping for type 'AquaLook/Slider' using base type 'CEGUI/Slider', window renderer 'Falagard/Slider' and Look'N'Feel 'AquaLook/Slider'. (0012DBC0)
24/07/2009 20:22:19 (Std) Creating falagard mapping for type 'AquaLook/SliderThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' and Look'N'Feel 'AquaLook/SliderThumb'. (0012DBC0)
24/07/2009 20:22:19 (Std) Creating falagard mapping for type 'AquaLook/SliderHoriz' using base type 'CEGUI/Slider', window renderer 'Falagard/Slider' and Look'N'Feel 'AquaLook/SliderHoriz'. (0012DBC0)
24/07/2009 20:22:19 (Std) Creating falagard mapping for type 'AquaLook/SliderHorizThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' and Look'N'Feel 'AquaLook/SliderHorizThumb'. (0012DBC0)
24/07/2009 20:22:19 (Std) Creating falagard mapping for type 'AquaLook/ScrollablePane' using base type 'CEGUI/ScrollablePane', window renderer 'Falagard/ScrollablePane' and Look'N'Feel 'AquaLook/ScrollablePane'. (0012DBC0)
24/07/2009 20:22:19 (Std) Creating falagard mapping for type 'AquaLook/Spinner' using base type 'CEGUI/Spinner', window renderer 'Falagard/Default' and Look'N'Feel 'AquaLook/Spinner'. (0012DBC0)
24/07/2009 20:22:19 (Std) Creating falagard mapping for type 'AquaLook/Tooltip' using base type 'CEGUI/Tooltip', window renderer 'Falagard/Tooltip' and Look'N'Feel 'AquaLook/Tooltip'. (0012DBC0)
24/07/2009 20:22:19 (Std) Creating falagard mapping for type 'AquaLook/StaticImage' using base type 'DefaultWindow', window renderer 'Falagard/StaticImage' and Look'N'Feel 'AquaLook/StaticImage'. (0012DBC0)
24/07/2009 20:22:19 (Std) Creating falagard mapping for type 'AquaLook/StaticText' using base type 'DefaultWindow', window renderer 'Falagard/StaticText' and Look'N'Feel 'AquaLook/StaticText'. (0012DBC0)
24/07/2009 20:22:19 (Std) Attempting to create Imageset 'BlueHighway-10_auto_glyph_images_ ' with texture only.
24/07/2009 20:22:19 (Std) Attempting to create Imageset 'BlueHighway-10_auto_glyph_images_û' with texture only.
24/07/2009 20:22:19 (Std) ---- Successfully completed loading of GUI layout from 'D:/Personal/FITG-source-code/datafiles/layouts//fitg_progress_bar.layout' ----
24/07/2009 20:22:19 (Std) ---- Successfully completed loading of GUI layout from 'D:/Personal/FITG-source-code/datafiles/layouts//fitg_main_menu.layout' ----

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

Re: Subscribing events

Postby CrazyEddie » Sat Jul 25, 2009 08:45

Same kind of questions as above, I'm afraid :) To be shorter, and explicit...

What's the exception exactly?
Is it the same in debug and release configurations?
If it happens in debug mode, can you get the callstack for the point where the exception occurs? (and post it here, obviously - don't just answer "yes" :lol: )
If you're using the VC++ 2005 compiler, do you have SP1 for VC++ 2005 installed, since our precompiled stuff was built with that, if your config does not match you'll get issues.
Static or dynamic linking?

Why all the questions? Well, these issues are not always exactly the easiest to track down, so having this information helps to get a better idea of the exact state of your code when you get the issue.

CE.

lymantok
Not too shy to talk
Not too shy to talk
Posts: 39
Joined: Sun May 13, 2007 03:24

Re: Subscribing events

Postby lymantok » Sun Jul 26, 2009 00:10

Thx CE,

Here is my code generation screen in VC++ 2005 (MT debug):

http://www.flickr.com/photos/22251599@N04/3755769983/

Here is the exception:

First-chance exception at 0x00407706 in fitg.exe: 0xC0000005: Access violation reading location 0xbaadf008.
Unhandled exception at 0x00407706 in fitg.exe: 0xC0000005: Access violation reading location 0xbaadf008.
The program '[4020] fitg.exe: Native' has exited with code 0 (0x0).

I rebuilt cegui as the precompiled binaries did not support Irrlicht 1.5.

Ugh! It looks like I do not have SP1 applied. Will apply and update.

[Edit]

CE, looks like SP1 did the trick. I rebuilt CEGUI and no exception on subscribe event now.

Thx!

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

Re: Subscribing events

Postby CrazyEddie » Sun Jul 26, 2009 09:32

lymantok wrote:CE, looks like SP1 did the trick. I rebuilt CEGUI and no exception on subscribe event now.

That whole SP1 thing breaking binaries is really annoying - I'm not sure exactly what they did that caused that, but it's really not good enough because it makes other people look bad too :)

CE.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 13 guests