Page 1 of 1
odd problem with checkbox
Posted: Tue Apr 10, 2012 05:41
by jheld
Hi all,
I have a series of checkboxes. The intent is that clicking on one box deselects all the other boxes. We're getting an exception when deselecting. After a fair bit of the usual debugging, we're finding that the exception only happens when using the Checkbox::EventStateChanged event.
Code: Select all
orbARLock->subscribeEvent(CEGUI::FrameWindow::EventMouseClick, CEGUI::Event::Subscriber(&SCOrbWindow::Evt_ARLock, this)); //workaround
orbRALock->subscribeEvent(CEGUI::Checkbox::EventCheckStateChanged, CEGUI::Event::Subscriber(&SCOrbWindow::Evt_RALock, this)); // what it should be
the exception occurs later when calling
Code: Select all
if (orbRALock->isSelected()) orbRALock->setSelected(false);Does anyone know why this would be? Or am I missing something fundamental? Using the current workaround is a bit of a hack, which I can live with, but would rather know the underlying cause.
Cheers J
(CEGUI version 0.7.5)
Re: odd problem with checkbox
Posted: Wed Apr 11, 2012 08:05
by Kulik
When asking for help: Please post your CEGUI.log and the text of any error or exception messages. Thank you!
Re: odd problem with checkbox
Posted: Wed Apr 11, 2012 08:25
by jheld
exception is:
unhandled exception at 0x0083946b in PIGI.exe: 0x000005: Access violation writing location 0x001f0ffc
and the log, for what it's worth...
Code: Select all
11/04/2012 15:25:02 (Std) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
11/04/2012 15:25:02 (Std) + Crazy Eddie's GUI System - Event log +
11/04/2012 15:25:02 (Std) + (http://www.cegui.org.uk/) +
11/04/2012 15:25:02 (Std) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
11/04/2012 15:25:02 (Std) CEGUI::Logger singleton created. (072D4748)
11/04/2012 15:25:02 (Std)
11/04/2012 15:25:02 (Std) ********************************************************************************
11/04/2012 15:25:02 (Std) * Important: *
11/04/2012 15:25:02 (Std) * To get support at the CEGUI forums, you must post _at least_ the section *
11/04/2012 15:25:02 (Std) * of this log file indicated below. Failure to do this will result in no *
11/04/2012 15:25:02 (Std) * support being given; please do not waste our time. *
11/04/2012 15:25:02 (Std) ********************************************************************************
11/04/2012 15:25:02 (Std) ********************************************************************************
11/04/2012 15:25:02 (Std) * -------- START OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM -------- *
11/04/2012 15:25:02 (Std) ********************************************************************************
11/04/2012 15:25:02 (Std) ---- Version 0.7.5 (Build: Nov 19 2010 Microsoft Windows MSVC++ 10.0 32 bit) ----
11/04/2012 15:25:02 (Std) ---- Renderer module is: CEGUI::OgreRenderer - Official OGRE based 2nd generation renderer module. ----
11/04/2012 15:25:02 (Std) ---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
11/04/2012 15:25:02 (Std) ---- Image Codec module is: OgreImageCodec - Integrated ImageCodec using the Ogre engine. ----
11/04/2012 15:25:02 (Std) ---- Scripting module is: None ----
11/04/2012 15:25:02 (Std) ********************************************************************************
11/04/2012 15:25:02 (Std) * -------- END OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM -------- *
11/04/2012 15:25:02 (Std) ********************************************************************************
11/04/2012 15:25:02 (Std)
11/04/2012 15:25:02 (Std) ---- Begining CEGUI System initialisation ----
11/04/2012 15:25:02 (Std) CEGUI::ImagesetManager singleton created (072D4668)
11/04/2012 15:25:02 (Std) CEGUI::FontManager singleton created. (072D4B60)
11/04/2012 15:25:02 (Std) CEGUI::WindowFactoryManager singleton created
11/04/2012 15:25:02 (Std) CEGUI::WindowManager singleton created (072C0F40)
11/04/2012 15:25:02 (Std) CEGUI::SchemeManager singleton created. (072F2E00)
11/04/2012 15:25:02 (Std) CEGUI::MouseCursor singleton created. (072D2788)
11/04/2012 15:25:02 (Std) CEGUI::GlobalEventSet singleton created. (0202E958)
11/04/2012 15:25:02 (Std) CEGUI::AnimationManager singleton created (02013170)
11/04/2012 15:25:02 (Std) CEGUI::WidgetLookManager singleton created. (01FC4F78)
11/04/2012 15:25:02 (Std) CEGUI::WindowRendererManager singleton created (01FC4F60)
11/04/2012 15:25:02 (Std) CEGUI::RenderEffectManager singleton created (0202ED18)
11/04/2012 15:25:02 (Std) Created WindowFactory for 'DefaultWindow' windows.
11/04/2012 15:25:02 (Std) WindowFactory for 'DefaultWindow' windows added. (072C6F40)
11/04/2012 15:25:02 (Std) Created WindowFactory for 'DragContainer' windows.
11/04/2012 15:25:02 (Std) WindowFactory for 'DragContainer' windows added. (072C6FE8)
11/04/2012 15:25:02 (Std) Created WindowFactory for 'ScrolledContainer' windows.
11/04/2012 15:25:02 (Std) WindowFactory for 'ScrolledContainer' windows added. (072C7090)
11/04/2012 15:25:02 (Std) Created WindowFactory for 'ClippedContainer' windows.
11/04/2012 15:25:02 (Std) WindowFactory for 'ClippedContainer' windows added. (072C7138)
11/04/2012 15:25:02 (Std) Created WindowFactory for 'CEGUI/Checkbox' windows.
11/04/2012 15:25:02 (Std) WindowFactory for 'CEGUI/Checkbox' windows added. (072C71E0)
11/04/2012 15:25:02 (Std) Created WindowFactory for 'CEGUI/PushButton' windows.
11/04/2012 15:25:02 (Std) WindowFactory for 'CEGUI/PushButton' windows added. (072C7288)
11/04/2012 15:25:02 (Std) Created WindowFactory for 'CEGUI/RadioButton' windows.
11/04/2012 15:25:02 (Std) WindowFactory for 'CEGUI/RadioButton' windows added. (072C7330)
11/04/2012 15:25:02 (Std) Created WindowFactory for 'CEGUI/Combobox' windows.
11/04/2012 15:25:02 (Std) WindowFactory for 'CEGUI/Combobox' windows added. (072C73D8)
11/04/2012 15:25:02 (Std) Created WindowFactory for 'CEGUI/ComboDropList' windows.
11/04/2012 15:25:02 (Std) WindowFactory for 'CEGUI/ComboDropList' windows added. (072C7480)
11/04/2012 15:25:02 (Std) Created WindowFactory for 'CEGUI/Editbox' windows.
11/04/2012 15:25:02 (Std) WindowFactory for 'CEGUI/Editbox' windows added. (072C7528)
11/04/2012 15:25:02 (Std) Created WindowFactory for 'CEGUI/FrameWindow' windows.
11/04/2012 15:25:02 (Std) WindowFactory for 'CEGUI/FrameWindow' windows added. (072C75D0)
11/04/2012 15:25:02 (Std) Created WindowFactory for 'CEGUI/ItemEntry' windows.
11/04/2012 15:25:02 (Std) WindowFactory for 'CEGUI/ItemEntry' windows added. (072C7678)
11/04/2012 15:25:02 (Std) Created WindowFactory for 'CEGUI/Listbox' windows.
11/04/2012 15:25:02 (Std) WindowFactory for 'CEGUI/Listbox' windows added. (072C7720)
11/04/2012 15:25:02 (Std) Created WindowFactory for 'CEGUI/ListHeader' windows.
11/04/2012 15:25:02 (Std) WindowFactory for 'CEGUI/ListHeader' windows added. (072C77C8)
11/04/2012 15:25:02 (Std) Created WindowFactory for 'CEGUI/ListHeaderSegment' windows.
11/04/2012 15:25:02 (Std) WindowFactory for 'CEGUI/ListHeaderSegment' windows added. (072C7870)
11/04/2012 15:25:02 (Std) Created WindowFactory for 'CEGUI/Menubar' windows.
11/04/2012 15:25:02 (Std) WindowFactory for 'CEGUI/Menubar' windows added. (072C7918)
11/04/2012 15:25:02 (Std) Created WindowFactory for 'CEGUI/PopupMenu' windows.
11/04/2012 15:25:02 (Std) WindowFactory for 'CEGUI/PopupMenu' windows added. (072C79C0)
11/04/2012 15:25:02 (Std) Created WindowFactory for 'CEGUI/MenuItem' windows.
11/04/2012 15:25:02 (Std) WindowFactory for 'CEGUI/MenuItem' windows added. (072C7A68)
11/04/2012 15:25:02 (Std) Created WindowFactory for 'CEGUI/MultiColumnList' windows.
11/04/2012 15:25:02 (Std) WindowFactory for 'CEGUI/MultiColumnList' windows added. (072C7B10)
11/04/2012 15:25:02 (Std) Created WindowFactory for 'CEGUI/MultiLineEditbox' windows.
11/04/2012 15:25:02 (Std) WindowFactory for 'CEGUI/MultiLineEditbox' windows added. (072C7BB8)
11/04/2012 15:25:02 (Std) Created WindowFactory for 'CEGUI/ProgressBar' windows.
11/04/2012 15:25:02 (Std) WindowFactory for 'CEGUI/ProgressBar' windows added. (072C7C60)
11/04/2012 15:25:02 (Std) Created WindowFactory for 'CEGUI/ScrollablePane' windows.
11/04/2012 15:25:02 (Std) WindowFactory for 'CEGUI/ScrollablePane' windows added. (072C7D08)
11/04/2012 15:25:02 (Std) Created WindowFactory for 'CEGUI/Scrollbar' windows.
11/04/2012 15:25:02 (Std) WindowFactory for 'CEGUI/Scrollbar' windows added. (072C7DB0)
11/04/2012 15:25:02 (Std) Created WindowFactory for 'CEGUI/Slider' windows.
11/04/2012 15:25:02 (Std) WindowFactory for 'CEGUI/Slider' windows added. (072C7E58)
11/04/2012 15:25:02 (Std) Created WindowFactory for 'CEGUI/Spinner' windows.
11/04/2012 15:25:02 (Std) WindowFactory for 'CEGUI/Spinner' windows added. (072C7F00)
11/04/2012 15:25:02 (Std) Created WindowFactory for 'CEGUI/TabButton' windows.
11/04/2012 15:25:02 (Std) WindowFactory for 'CEGUI/TabButton' windows added. (072C7FA8)
11/04/2012 15:25:02 (Std) Created WindowFactory for 'CEGUI/TabControl' windows.
11/04/2012 15:25:02 (Std) WindowFactory for 'CEGUI/TabControl' windows added. (072C8050)
11/04/2012 15:25:02 (Std) Created WindowFactory for 'CEGUI/Thumb' windows.
11/04/2012 15:25:02 (Std) WindowFactory for 'CEGUI/Thumb' windows added. (072C80F8)
11/04/2012 15:25:02 (Std) Created WindowFactory for 'CEGUI/Titlebar' windows.
11/04/2012 15:25:02 (Std) WindowFactory for 'CEGUI/Titlebar' windows added. (072C81A0)
11/04/2012 15:25:02 (Std) Created WindowFactory for 'CEGUI/Tooltip' windows.
11/04/2012 15:25:02 (Std) WindowFactory for 'CEGUI/Tooltip' windows added. (072C8248)
11/04/2012 15:25:02 (Std) Created WindowFactory for 'CEGUI/ItemListbox' windows.
11/04/2012 15:25:02 (Std) WindowFactory for 'CEGUI/ItemListbox' windows added. (072C82F0)
11/04/2012 15:25:02 (Std) Created WindowFactory for 'CEGUI/GroupBox' windows.
11/04/2012 15:25:02 (Std) WindowFactory for 'CEGUI/GroupBox' windows added. (072C8398)
11/04/2012 15:25:02 (Std) Created WindowFactory for 'CEGUI/Tree' windows.
11/04/2012 15:25:02 (Std) WindowFactory for 'CEGUI/Tree' windows added. (072C8440)
11/04/2012 15:25:02 (Std) Created WindowFactory for 'HorizontalLayoutContainer' windows.
11/04/2012 15:25:02 (Std) WindowFactory for 'HorizontalLayoutContainer' windows added. (072C84E8)
11/04/2012 15:25:02 (Std) Created WindowFactory for 'VerticalLayoutContainer' windows.
11/04/2012 15:25:02 (Std) WindowFactory for 'VerticalLayoutContainer' windows added. (072C8590)
11/04/2012 15:25:02 (Std) Created WindowFactory for 'GridLayoutContainer' windows.
11/04/2012 15:25:02 (Std) WindowFactory for 'GridLayoutContainer' windows added. (072C8638)
11/04/2012 15:25:02 (Std) Window type alias named 'DefaultGUISheet' added for window type 'DefaultWindow'.
11/04/2012 15:25:02 (Std) CEGUI::System singleton created. (072D4350)
11/04/2012 15:25:02 (Std) ---- CEGUI System initialisation completed ----
11/04/2012 15:25:02 (Std)
11/04/2012 15:25:02 (Error) Attempt to set value of '481' to read only property 'HorzExtent' on window: Settings/About
11/04/2012 15:25:02 (Error) Attempt to set value of '54.0789' to read only property 'VertExtent' on window: Settings/About
11/04/2012 15:25:02 (Error) Attempt to set value of '49' to read only property 'HorzExtent' on window: Settings/About/Version
11/04/2012 15:25:02 (Error) Attempt to set value of '11.7287' to read only property 'VertExtent' on window: Settings/About/Version
11/04/2012 15:25:02 (Error) Attempt to set value of '593' to read only property 'HorzExtent' on window: Settings/About/DescText
11/04/2012 15:25:02 (Error) Attempt to set value of '72.1053' to read only property 'VertExtent' on window: Settings/About/DescText
11/04/2012 15:25:02 (Error) Attempt to set value of '336' to read only property 'HorzExtent' on window: Settings/About/DescText1
11/04/2012 15:25:02 (Error) Attempt to set value of '54.0789' to read only property 'VertExtent' on window: Settings/About/DescText1
11/04/2012 15:25:02 (Error) Attempt to set value of '88' to read only property 'HorzExtent' on window: Settings/Graphics
11/04/2012 15:25:02 (Error) Attempt to set value of '18.0263' to read only property 'VertExtent' on window: Settings/Graphics
11/04/2012 15:25:02 (Error) Attempt to set value of '107' to read only property 'HorzExtent' on window: Settings/Gameplay
11/04/2012 15:25:02 (Error) Attempt to set value of '18.0263' to read only property 'VertExtent' on window: Settings/Gameplay
11/04/2012 15:25:02 (Error) Attempt to set value of '64' to read only property 'HorzExtent' on window: Settings/Sound
11/04/2012 15:25:02 (Error) Attempt to set value of '18.0263' to read only property 'VertExtent' on window: Settings/Sound
11/04/2012 15:25:02 (Error) Attempt to set value of '70' to read only property 'HorzExtent' on window: Settings/Sound/SoundMainTxt
11/04/2012 15:25:02 (Error) Attempt to set value of '11.7287' to read only property 'VertExtent' on window: Settings/Sound/SoundMainTxt
11/04/2012 15:25:02 (Error) Attempt to set value of '33' to read only property 'HorzExtent' on window: Settings/Sound/SoundEffectsTxt
11/04/2012 15:25:02 (Error) Attempt to set value of '11.7287' to read only property 'VertExtent' on window: Settings/Sound/SoundEffectsTxt
11/04/2012 15:25:02 (Error) Attempt to set value of '28' to read only property 'HorzExtent' on window: Settings/Sound/SoundMusicTxt
11/04/2012 15:25:02 (Error) Attempt to set value of '11.7287' to read only property 'VertExtent' on window: Settings/Sound/SoundMusicTxt
11/04/2012 15:25:02 (Error) Attempt to set value of '79' to read only property 'HorzExtent' on window: SSHUD/LessonBook/LessonTitle
11/04/2012 15:25:02 (Error) Attempt to set value of '11.7287' to read only property 'VertExtent' on window: SSHUD/LessonBook/LessonTitle
11/04/2012 15:25:02 (Error) Attempt to set value of '54' to read only property 'HorzExtent' on window: SSHUD/TimePanel/GameTime
11/04/2012 15:25:02 (Error) Attempt to set value of '11.7287' to read only property 'VertExtent' on window: SSHUD/TimePanel/GameTime
11/04/2012 15:25:02 (Error) Attempt to set value of '53' to read only property 'HorzExtent' on window: SSHUD/TimePanel/JDate
11/04/2012 15:25:02 (Error) Attempt to set value of '11.7287' to read only property 'VertExtent' on window: SSHUD/TimePanel/JDate
11/04/2012 15:25:02 (Error) Attempt to set value of '67' to read only property 'HorzExtent' on window: SSHUD/TimePanel/CDate
11/04/2012 15:25:02 (Error) Attempt to set value of '11.7287' to read only property 'VertExtent' on window: SSHUD/TimePanel/CDate
11/04/2012 15:25:02 (Error) Attempt to set value of '23' to read only property 'HorzExtent' on window: SSHUD/StatPanel/HUD1
11/04/2012 15:25:02 (Error) Attempt to set value of '11.7287' to read only property 'VertExtent' on window: SSHUD/StatPanel/HUD1
11/04/2012 15:25:02 (Error) Attempt to set value of '26' to read only property 'HorzExtent' on window: SSHUD/StatPanel/HUD2
11/04/2012 15:25:02 (Error) Attempt to set value of '11.7287' to read only property 'VertExtent' on window: SSHUD/StatPanel/HUD2
11/04/2012 15:25:02 (Error) Attempt to set value of '25' to read only property 'HorzExtent' on window: SSHUD/StatPanel/HUD3
11/04/2012 15:25:02 (Error) Attempt to set value of '11.7287' to read only property 'VertExtent' on window: SSHUD/StatPanel/HUD3
11/04/2012 15:25:02 (Error) Attempt to set value of '27' to read only property 'HorzExtent' on window: SSHUD/StatPanel/HUD4
11/04/2012 15:25:02 (Error) Attempt to set value of '11.7287' to read only property 'VertExtent' on window: SSHUD/StatPanel/HUD4
11/04/2012 15:25:02 (Error) Attempt to set value of '25' to read only property 'HorzExtent' on window: SSHUD/StatPanel/HUD5
11/04/2012 15:25:02 (Error) Attempt to set value of '11.7287' to read only property 'VertExtent' on window: SSHUD/StatPanel/HUD5
11/04/2012 15:25:02 (Error) Attempt to set value of '25' to read only property 'HorzExtent' on window: SSHUD/StatPanel/HUD6
11/04/2012 15:25:02 (Error) Attempt to set value of '11.7287' to read only property 'VertExtent' on window: SSHUD/StatPanel/HUD6
11/04/2012 15:25:02 (Error) Attempt to set value of '25' to read only property 'HorzExtent' on window: SSHUD/StatPanel/HUD9
11/04/2012 15:25:02 (Error) Attempt to set value of '11.7287' to read only property 'VertExtent' on window: SSHUD/StatPanel/HUD9
11/04/2012 15:25:02 (Error) Attempt to set value of '26' to read only property 'HorzExtent' on window: SSHUD/StatPanel/HUD7
11/04/2012 15:25:02 (Error) Attempt to set value of '11.7287' to read only property 'VertExtent' on window: SSHUD/StatPanel/HUD7
11/04/2012 15:25:02 (Error) Attempt to set value of '25' to read only property 'HorzExtent' on window: SSHUD/StatPanel/HUD8
11/04/2012 15:25:02 (Error) Attempt to set value of '11.7287' to read only property 'VertExtent' on window: SSHUD/StatPanel/HUD8
11/04/2012 15:25:02 (Error) Attempt to set value of '21' to read only property 'HorzExtent' on window: SSHUD/MMLat
11/04/2012 15:25:02 (Error) Attempt to set value of '11.7287' to read only property 'VertExtent' on window: SSHUD/MMLat
11/04/2012 15:25:02 (Error) Attempt to set value of '28' to read only property 'HorzExtent' on window: SSHUD/MMLong
11/04/2012 15:25:02 (Error) Attempt to set value of '11.7287' to read only property 'VertExtent' on window: SSHUD/MMLong
11/04/2012 15:25:02 (Error) Attempt to set value of '11.7287' to read only property 'VertExtent' on window: SSHUD/OrbEls/Inclination
11/04/2012 15:25:02 (Error) Attempt to set value of '11.7287' to read only property 'VertExtent' on window: SSHUD/OrbEls/SAxis
11/04/2012 15:25:02 (Error) Attempt to set value of '11.7287' to read only property 'VertExtent' on window: SSHUD/OrbEls/Eccentricity
11/04/2012 15:25:02 (Error) Attempt to set value of '11.7287' to read only property 'VertExtent' on window: SSHUD/OrbEls/ArgPerigee
11/04/2012 15:25:02 (Error) Attempt to set value of '11.7287' to read only property 'VertExtent' on window: SSHUD/OrbEls/Raan
11/04/2012 15:25:02 (Error) Attempt to set value of '11.7287' to read only property 'VertExtent' on window: SSHUD/OrbEls/Time
11/04/2012 15:25:02 (Error) Attempt to set value of '72' to read only property 'HorzExtent' on window: SSHUD/OrbEls/SemimajorAxisTxt
11/04/2012 15:25:02 (Error) Attempt to set value of '11.7287' to read only property 'VertExtent' on window: SSHUD/OrbEls/SemimajorAxisTxt
11/04/2012 15:25:02 (Error) Attempt to set value of '95' to read only property 'HorzExtent' on window: SSHUD/OrbEls/ArgPerigeeTxt
11/04/2012 15:25:02 (Error) Attempt to set value of '11.7287' to read only property 'VertExtent' on window: SSHUD/OrbEls/ArgPerigeeTxt
11/04/2012 15:25:02 (Error) Attempt to set value of '50' to read only property 'HorzExtent' on window: SSHUD/OrbEls/InclinationTxt
11/04/2012 15:25:02 (Error) Attempt to set value of '11.7287' to read only property 'VertExtent' on window: SSHUD/OrbEls/InclinationTxt
11/04/2012 15:25:02 (Error) Attempt to set value of '54' to read only property 'HorzExtent' on window: SSHUD/OrbEls/EccentricityTxt
11/04/2012 15:25:02 (Error) Attempt to set value of '11.7287' to read only property 'VertExtent' on window: SSHUD/OrbEls/EccentricityTxt
11/04/2012 15:25:02 (Error) Attempt to set value of '74' to read only property 'HorzExtent' on window: SSHUD/OrbEls/RAANTxt
11/04/2012 15:25:02 (Error) Attempt to set value of '11.7287' to read only property 'VertExtent' on window: SSHUD/OrbEls/RAANTxt
11/04/2012 15:25:02 (Error) Attempt to set value of '65' to read only property 'HorzExtent' on window: SSHUD/OrbEls/TimeSPTxt
11/04/2012 15:25:02 (Error) Attempt to set value of '11.7287' to read only property 'VertExtent' on window: SSHUD/OrbEls/TimeSPTxt
11/04/2012 15:25:02 (Error) Attempt to set value of '42' to read only property 'HorzExtent' on window: Main/LoadStatTxt
11/04/2012 15:25:02 (Error) Attempt to set value of '11.7287' to read only property 'VertExtent' on window: Main/LoadStatTxt
Re: odd problem with checkbox
Posted: Wed Apr 11, 2012 08:38
by Kulik
This is some memory error in your own code. I can't possibly know where. Debug it. If you can, run it through valgrind or something similar.
Re: odd problem with checkbox
Posted: Wed Apr 11, 2012 12:14
by jheld
Understand it's in my own code. Wasn't implying a problem with CEGUI.
It's also why I didn't bother this forum with the error log or the exception details, since I knew there was nothing in there leading to the actual problem.
Was just trying to understand CEGUI better. Didn't mean to waste your time. Moving on, I guess.