Deleting the CEGUI::System causes an access violation

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

LearnerPlates
Just popping in
Just popping in
Posts: 20
Joined: Mon Jun 08, 2009 06:05

Deleting the CEGUI::System causes an access violation

Postby LearnerPlates » Fri Nov 06, 2009 12:09

I'm sure I must be missing something simple - I get an access violation whenever I try to delete the CEGUI::System object. (Should I not be attempting to do this?) Here is how I create the object in my class initialisation function:

Code: Select all

pCeguiRenderer = new CEGUI::OgreCEGUIRenderer( this->pRenderWin, Ogre::RENDER_QUEUE_OVERLAY, false, 3000, this->pSceneMgr );
pCeguiSystem = new CEGUI::System( pCeguiRenderer );


This works fine and allocates pCeguiSystem a memory address of 0x00d50000.

Here is how I try to delete it in my class destructor:

Code: Select all

if ( pCeguiSystem )
    delete pCeguiSystem;

if ( pCeguiRenderer )
    delete pCeguiRenderer;


When the code reaches the delete pCeguiSystem; line, it gives the following error: Access violation reading location 0x014ba950.

Why is my program trying to access a different memory location? I have no idea what this address refers to - the pCeguiSystem address hasn't changed, and it's not the address of pCeguiRenderer either. Is this likely to be some sort of mistake with my C++ or could Ogre or something else be somehow interfering with the System object? Is there something else I should have deleted or created first? I'm really stumped!

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

Re: Deleting the CEGUI::System causes an access violation

Postby Jamarr » Fri Nov 06, 2009 19:54

#1 The first rule of CEGUI is, you always post your CEGUI.log file.
#2 The second rule of CEGUI is, you ALWAYS post your CEGUI.log file.
:wink:

But seriously, have you looked at your log file? It should show any/all attempts to create or destroy the system object; perhaps you are inadvertantly trying to delete it multiple times? Also, you can verify the CEGUI::System pointer address by using CEGUI::System::getSingletonPtr() to compare addresses and/or see if it's already been destroyed.
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!

LearnerPlates
Just popping in
Just popping in
Posts: 20
Joined: Mon Jun 08, 2009 06:05

Re: Deleting the CEGUI::System causes an access violation

Postby LearnerPlates » Sat Nov 07, 2009 04:58

Sorry Jamarr! :lol: CEGUI.log is below... no errors, though, and using CEGUI::System::getSingletonPtr() reveals that the address is indeed the same as that stored in pCeguiSystem.

I assume the log should say something like "CEGUI System successfully deleted" after those last two lines?

Code: Select all

07/11/2009 15:32:50 (InfL1)   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
07/11/2009 15:32:50 (InfL1)   +                     Crazy Eddie's GUI System - Event log                    +
07/11/2009 15:32:50 (InfL1)   +                          (http://www.cegui.org.uk/)                         +
07/11/2009 15:32:50 (InfL1)   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

07/11/2009 15:32:50 (InfL1)   CEGUI::Logger singleton created.
07/11/2009 15:32:50 (InfL1)   ---- Begining CEGUI System initialisation ----
07/11/2009 15:32:50 (InfL1)   CEGUI::ImagesetManager singleton created
07/11/2009 15:32:50 (InfL1)   CEGUI::FontManager singleton created.
07/11/2009 15:32:50 (InfL1)   CEGUI::WindowFactoryManager singleton created
07/11/2009 15:32:50 (InfL1)   CEGUI::WindowManager singleton created
07/11/2009 15:32:50 (InfL1)   CEGUI::SchemeManager singleton created.
07/11/2009 15:32:50 (InfL1)   CEGUI::MouseCursor singleton created.
07/11/2009 15:32:50 (InfL1)   CEGUI::GlobalEventSet singleton created.
07/11/2009 15:32:50 (InfL1)   CEGUI::WidgetLookManager singleton created.
07/11/2009 15:32:50 (InfL1)   CEGUI::WindowRendererManager singleton created
07/11/2009 15:32:50 (InfL1)   WindowFactory for 'DefaultWindow' windows added.
07/11/2009 15:32:50 (InfL1)   WindowFactory for 'DragContainer' windows added.
07/11/2009 15:32:50 (InfL1)   WindowFactory for 'ScrolledContainer' windows added.
07/11/2009 15:32:50 (InfL1)   WindowFactory for 'ClippedContainer' windows added.
07/11/2009 15:32:50 (InfL1)   WindowFactory for 'CEGUI/Checkbox' windows added.
07/11/2009 15:32:50 (InfL1)   WindowFactory for 'CEGUI/PushButton' windows added.
07/11/2009 15:32:50 (InfL1)   WindowFactory for 'CEGUI/RadioButton' windows added.
07/11/2009 15:32:50 (InfL1)   WindowFactory for 'CEGUI/Combobox' windows added.
07/11/2009 15:32:50 (InfL1)   WindowFactory for 'CEGUI/ComboDropList' windows added.
07/11/2009 15:32:50 (InfL1)   WindowFactory for 'CEGUI/Editbox' windows added.
07/11/2009 15:32:50 (InfL1)   WindowFactory for 'CEGUI/FrameWindow' windows added.
07/11/2009 15:32:50 (InfL1)   WindowFactory for 'CEGUI/ItemEntry' windows added.
07/11/2009 15:32:50 (InfL1)   WindowFactory for 'CEGUI/Listbox' windows added.
07/11/2009 15:32:50 (InfL1)   WindowFactory for 'CEGUI/ListHeader' windows added.
07/11/2009 15:32:50 (InfL1)   WindowFactory for 'CEGUI/ListHeaderSegment' windows added.
07/11/2009 15:32:50 (InfL1)   WindowFactory for 'CEGUI/Menubar' windows added.
07/11/2009 15:32:50 (InfL1)   WindowFactory for 'CEGUI/PopupMenu' windows added.
07/11/2009 15:32:50 (InfL1)   WindowFactory for 'CEGUI/MenuItem' windows added.
07/11/2009 15:32:50 (InfL1)   WindowFactory for 'CEGUI/MultiColumnList' windows added.
07/11/2009 15:32:50 (InfL1)   WindowFactory for 'CEGUI/MultiLineEditbox' windows added.
07/11/2009 15:32:50 (InfL1)   WindowFactory for 'CEGUI/ProgressBar' windows added.
07/11/2009 15:32:50 (InfL1)   WindowFactory for 'CEGUI/ScrollablePane' windows added.
07/11/2009 15:32:50 (InfL1)   WindowFactory for 'CEGUI/Scrollbar' windows added.
07/11/2009 15:32:50 (InfL1)   WindowFactory for 'CEGUI/Slider' windows added.
07/11/2009 15:32:50 (InfL1)   WindowFactory for 'CEGUI/Spinner' windows added.
07/11/2009 15:32:50 (InfL1)   WindowFactory for 'CEGUI/TabButton' windows added.
07/11/2009 15:32:50 (InfL1)   WindowFactory for 'CEGUI/TabControl' windows added.
07/11/2009 15:32:50 (InfL1)   WindowFactory for 'CEGUI/Thumb' windows added.
07/11/2009 15:32:50 (InfL1)   WindowFactory for 'CEGUI/Titlebar' windows added.
07/11/2009 15:32:50 (InfL1)   WindowFactory for 'CEGUI/Tooltip' windows added.
07/11/2009 15:32:50 (InfL1)   WindowFactory for 'CEGUI/ItemListbox' windows added.
07/11/2009 15:32:50 (InfL1)   Window type alias named 'DefaultGUISheet' added for window type 'DefaultWindow'.
07/11/2009 15:32:50 (InfL1)   CEGUI::System singleton created.
07/11/2009 15:32:50 (InfL1)   ---- CEGUI System initialisation completed ----
07/11/2009 15:32:50 (InfL1)   ---- Version 0.5.1 ----
07/11/2009 15:32:50 (InfL1)   ---- Renderer module is: CEGUI::OgreRenderer - Official Ogre based renderer module for CEGUI ----
07/11/2009 15:32:50 (InfL1)   ---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
07/11/2009 15:32:50 (InfL1)   ---- Scripting module is: None ----
07/11/2009 15:32:50 (InfL1)   Attempting to load Scheme from file 'ProjectLook.scheme'.
07/11/2009 15:32:50 (InfL1)   Attempting to create an Imageset from the information specified in file 'ProjectLook.imageset'.
07/11/2009 15:32:50 (InfL1)   Started creation of Imageset from XML specification:
07/11/2009 15:32:50 (InfL1)   ---- CEGUI Imageset name: ProjectLook
07/11/2009 15:32:50 (InfL1)   ---- Source texture file: ProjectLook.tga in resource group: (Default)
07/11/2009 15:32:50 (InfL1)   Attempting to create Font from the information specified in file 'Text.font'.
07/11/2009 15:32:50 (InfL1)   Started creation of FreeType Font:
07/11/2009 15:32:50 (InfL1)   ---- CEGUI font name: Text
07/11/2009 15:32:50 (InfL1)   ----     Source file: Grotto.ttf in resource group: (Default)
07/11/2009 15:32:50 (InfL1)   ---- Real point size: 14
07/11/2009 15:32:50 (InfL1)   Succsessfully loaded 69 glyphs
07/11/2009 15:32:50 (InfL1)   ===== Falagard 'root' element: look and feel parsing begins =====
07/11/2009 15:32:50 (InfL1)   ===== Look and feel parsing completed =====
07/11/2009 15:32:50 (InfL1)   No window renderer factories specified for module 'CEGUIFalagardWRBase' - adding all available factories...
07/11/2009 15:32:50 (InfL1)   WindowRendererFactory 'Falagard/Button' added.
07/11/2009 15:32:50 (InfL1)   WindowRendererFactory 'Falagard/Default' added.
07/11/2009 15:32:50 (InfL1)   WindowRendererFactory 'Falagard/Editbox' added.
07/11/2009 15:32:50 (InfL1)   WindowRendererFactory 'Falagard/FrameWindow' added.
07/11/2009 15:32:50 (InfL1)   WindowRendererFactory 'Falagard/ItemEntry' added.
07/11/2009 15:32:50 (InfL1)   WindowRendererFactory 'Falagard/ListHeader' added.
07/11/2009 15:32:50 (InfL1)   WindowRendererFactory 'Falagard/ListHeaderSegment' added.
07/11/2009 15:32:50 (InfL1)   WindowRendererFactory 'Falagard/Listbox' added.
07/11/2009 15:32:50 (InfL1)   WindowRendererFactory 'Falagard/Menubar' added.
07/11/2009 15:32:50 (InfL1)   WindowRendererFactory 'Falagard/MenuItem' added.
07/11/2009 15:32:50 (InfL1)   WindowRendererFactory 'Falagard/MultiColumnList' added.
07/11/2009 15:32:50 (InfL1)   WindowRendererFactory 'Falagard/MultiLineEditbox' added.
07/11/2009 15:32:50 (InfL1)   WindowRendererFactory 'Falagard/PopupMenu' added.
07/11/2009 15:32:50 (InfL1)   WindowRendererFactory 'Falagard/ProgressBar' added.
07/11/2009 15:32:50 (InfL1)   WindowRendererFactory 'Falagard/ScrollablePane' added.
07/11/2009 15:32:50 (InfL1)   WindowRendererFactory 'Falagard/Scrollbar' added.
07/11/2009 15:32:50 (InfL1)   WindowRendererFactory 'Falagard/Slider' added.
07/11/2009 15:32:50 (InfL1)   WindowRendererFactory 'Falagard/Static' added.
07/11/2009 15:32:50 (InfL1)   WindowRendererFactory 'Falagard/StaticImage' added.
07/11/2009 15:32:50 (InfL1)   WindowRendererFactory 'Falagard/StaticText' added.
07/11/2009 15:32:50 (InfL1)   WindowRendererFactory 'Falagard/SystemButton' added.
07/11/2009 15:32:50 (InfL1)   WindowRendererFactory 'Falagard/TabButton' added.
07/11/2009 15:32:50 (InfL1)   WindowRendererFactory 'Falagard/TabControl' added.
07/11/2009 15:32:50 (InfL1)   WindowRendererFactory 'Falagard/Titlebar' added.
07/11/2009 15:32:50 (InfL1)   WindowRendererFactory 'Falagard/ToggleButton' added.
07/11/2009 15:32:50 (InfL1)   WindowRendererFactory 'Falagard/Tooltip' added.
07/11/2009 15:32:50 (InfL1)   WindowRendererFactory 'Falagard/ItemListbox' added.
07/11/2009 15:32:50 (InfL1)   Creating falagard mapping for type 'ProjectLook/Button' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' and Look'N'Feel 'ProjectLook/Button'.
07/11/2009 15:32:50 (InfL1)   Creating falagard mapping for type 'ProjectLook/Checkbox' using base type 'CEGUI/Checkbox', window renderer 'Falagard/ToggleButton' and Look'N'Feel 'ProjectLook/Checkbox'.
07/11/2009 15:32:50 (InfL1)   Creating falagard mapping for type 'ProjectLook/ImageButton' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' and Look'N'Feel 'ProjectLook/ImageButton'.
07/11/2009 15:32:50 (InfL1)   Creating falagard mapping for type 'ProjectLook/RadioButton' using base type 'CEGUI/RadioButton', window renderer 'Falagard/ToggleButton' and Look'N'Feel 'ProjectLook/RadioButton'.
07/11/2009 15:32:50 (InfL1)   Creating falagard mapping for type 'ProjectLook/FrameWindow' using base type 'CEGUI/FrameWindow', window renderer 'Falagard/FrameWindow' and Look'N'Feel 'ProjectLook/FrameWindow'.
07/11/2009 15:32:50 (InfL1)   Creating falagard mapping for type 'ProjectLook/Titlebar' using base type 'CEGUI/Titlebar', window renderer 'Falagard/Titlebar' and Look'N'Feel 'ProjectLook/Titlebar'.
07/11/2009 15:32:50 (InfL1)   Creating falagard mapping for type 'ProjectLook/SystemButton' using base type 'CEGUI/PushButton', window renderer 'Falagard/SystemButton' and Look'N'Feel 'ProjectLook/Button'.
07/11/2009 15:32:50 (InfL1)   Creating falagard mapping for type 'ProjectLook/Editbox' using base type 'CEGUI/Editbox', window renderer 'Falagard/Editbox' and Look'N'Feel 'ProjectLook/Editbox'.
07/11/2009 15:32:50 (InfL1)   Creating falagard mapping for type 'ProjectLook/MultiLineEditbox' using base type 'CEGUI/MultiLineEditbox', window renderer 'Falagard/MultiLineEditbox' and Look'N'Feel 'ProjectLook/MultiLineEditbox'.
07/11/2009 15:32:50 (InfL1)   Creating falagard mapping for type 'ProjectLook/Menubar' using base type 'CEGUI/Menubar', window renderer 'Falagard/Menubar' and Look'N'Feel 'ProjectLook/Menubar'.
07/11/2009 15:32:50 (InfL1)   Creating falagard mapping for type 'ProjectLook/PopupMenu' using base type 'CEGUI/PopupMenu', window renderer 'Falagard/PopupMenu' and Look'N'Feel 'ProjectLook/PopupMenu'.
07/11/2009 15:32:50 (InfL1)   Creating falagard mapping for type 'ProjectLook/MenuItem' using base type 'CEGUI/MenuItem', window renderer 'Falagard/MenuItem' and Look'N'Feel 'ProjectLook/MenuItem'.
07/11/2009 15:32:50 (InfL1)   Creating falagard mapping for type 'ProjectLook/AlternateProgressBar' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' and Look'N'Feel 'ProjectLook/AltProgressBar'.
07/11/2009 15:32:50 (InfL1)   Creating falagard mapping for type 'ProjectLook/ProgressBar' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' and Look'N'Feel 'ProjectLook/ProgressBar'.
07/11/2009 15:32:50 (InfL1)   Creating falagard mapping for type 'ProjectLook/VUMeter' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' and Look'N'Feel 'ProjectLook/VUMeter'.
07/11/2009 15:32:50 (InfL1)   Creating falagard mapping for type 'ProjectLook/VerticalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' and Look'N'Feel 'ProjectLook/VerticalScrollbar'.
07/11/2009 15:32:50 (InfL1)   Creating falagard mapping for type 'ProjectLook/HorizontalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' and Look'N'Feel 'ProjectLook/HorizontalScrollbar'.
07/11/2009 15:32:50 (InfL1)   Creating falagard mapping for type 'ProjectLook/VerticalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' and Look'N'Feel 'ProjectLook/VerticalScrollbarThumb'.
07/11/2009 15:32:50 (InfL1)   Creating falagard mapping for type 'ProjectLook/HorizontalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' and Look'N'Feel 'ProjectLook/HorizontalScrollbarThumb'.
07/11/2009 15:32:50 (InfL1)   Creating falagard mapping for type 'ProjectLook/LargeVerticalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' and Look'N'Feel 'ProjectLook/LargeVerticalScrollbar'.
07/11/2009 15:32:50 (InfL1)   Creating falagard mapping for type 'ProjectLook/LargeVerticalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' and Look'N'Feel 'ProjectLook/LargeVerticalScrollbarThumb'.
07/11/2009 15:32:50 (InfL1)   Creating falagard mapping for type 'ProjectLook/TabButton' using base type 'CEGUI/TabButton', window renderer 'Falagard/TabButton' and Look'N'Feel 'ProjectLook/TabButton'.
07/11/2009 15:32:50 (InfL1)   Creating falagard mapping for type 'ProjectLook/TabControl' using base type 'CEGUI/TabControl', window renderer 'Falagard/TabControl' and Look'N'Feel 'ProjectLook/TabControl'.
07/11/2009 15:32:50 (InfL1)   Creating falagard mapping for type 'ProjectLook/TabContentPane' using base type 'DefaultWindow', window renderer 'Falagard/Default' and Look'N'Feel 'ProjectLook/TabContentPane'.
07/11/2009 15:32:50 (InfL1)   Creating falagard mapping for type 'ProjectLook/TabButtonPane' using base type 'DefaultWindow', window renderer 'Falagard/Default' and Look'N'Feel 'ProjectLook/TabButtonPane'.
07/11/2009 15:32:50 (InfL1)   Creating falagard mapping for type 'ProjectLook/ComboDropList' using base type 'CEGUI/ComboDropList', window renderer 'Falagard/Listbox' and Look'N'Feel 'ProjectLook/ComboDropList'.
07/11/2009 15:32:50 (InfL1)   Creating falagard mapping for type 'ProjectLook/ComboEditbox' using base type 'CEGUI/Editbox', window renderer 'Falagard/Editbox' and Look'N'Feel 'ProjectLook/ComboEditbox'.
07/11/2009 15:32:50 (InfL1)   Creating falagard mapping for type 'ProjectLook/Combobox' using base type 'CEGUI/Combobox', window renderer 'Falagard/Default' and Look'N'Feel 'ProjectLook/Combobox'.
07/11/2009 15:32:50 (InfL1)   Creating falagard mapping for type 'ProjectLook/Listbox' using base type 'CEGUI/Listbox', window renderer 'Falagard/Listbox' and Look'N'Feel 'ProjectLook/Listbox'.
07/11/2009 15:32:50 (InfL1)   Creating falagard mapping for type 'ProjectLook/ListHeader' using base type 'CEGUI/ListHeader', window renderer 'Falagard/ListHeader' and Look'N'Feel 'ProjectLook/ListHeader'.
07/11/2009 15:32:50 (InfL1)   Creating falagard mapping for type 'ProjectLook/ListHeaderSegment' using base type 'CEGUI/ListHeaderSegment', window renderer 'Falagard/ListHeaderSegment' and Look'N'Feel 'ProjectLook/ListHeaderSegment'.
07/11/2009 15:32:50 (InfL1)   Creating falagard mapping for type 'ProjectLook/MultiColumnList' using base type 'CEGUI/MultiColumnList', window renderer 'Falagard/MultiColumnList' and Look'N'Feel 'ProjectLook/MultiColumnList'.
07/11/2009 15:32:50 (InfL1)   Creating falagard mapping for type 'ProjectLook/Slider' using base type 'CEGUI/Slider', window renderer 'Falagard/Slider' and Look'N'Feel 'ProjectLook/Slider'.
07/11/2009 15:32:50 (InfL1)   Creating falagard mapping for type 'ProjectLook/SliderThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' and Look'N'Feel 'ProjectLook/SliderThumb'.
07/11/2009 15:32:50 (InfL1)   Creating falagard mapping for type 'ProjectLook/ScrollablePane' using base type 'CEGUI/ScrollablePane', window renderer 'Falagard/ScrollablePane' and Look'N'Feel 'ProjectLook/ScrollablePane'.
07/11/2009 15:32:50 (InfL1)   Creating falagard mapping for type 'ProjectLook/Spinner' using base type 'CEGUI/Spinner', window renderer 'Falagard/Default' and Look'N'Feel 'ProjectLook/Spinner'.
07/11/2009 15:32:50 (InfL1)   Creating falagard mapping for type 'ProjectLook/Tooltip' using base type 'CEGUI/Tooltip', window renderer 'Falagard/Tooltip' and Look'N'Feel 'ProjectLook/Tooltip'.
07/11/2009 15:32:50 (InfL1)   Creating falagard mapping for type 'ProjectLook/StaticImage' using base type 'DefaultWindow', window renderer 'Falagard/StaticImage' and Look'N'Feel 'ProjectLook/StaticImage'.
07/11/2009 15:32:50 (InfL1)   Creating falagard mapping for type 'ProjectLook/StaticText' using base type 'DefaultWindow', window renderer 'Falagard/StaticText' and Look'N'Feel 'ProjectLook/StaticText'.
07/11/2009 15:32:50 (InfL1)   Creating falagard mapping for type 'ProjectLook/ItemListbox' using base type 'CEGUI/ItemListbox', window renderer 'Falagard/ItemListbox' and Look'N'Feel 'ProjectLook/ItemListbox'.
07/11/2009 15:32:50 (InfL1)   Creating falagard mapping for type 'ProjectLook/ListboxItem' using base type 'CEGUI/ItemEntry', window renderer 'Falagard/ItemEntry' and Look'N'Feel 'ProjectLook/ListboxItem'.
07/11/2009 15:32:50 (InfL1)   Creating falagard mapping for type 'ProjectLook/GroupBox' using base type 'CEGUI/GroupBox', window renderer 'Falagard/Default' and Look'N'Feel 'ProjectLook/GroupBox'.
07/11/2009 15:32:50 (InfL1)   Creating falagard mapping for type 'ProjectLook/Tree' using base type 'CEGUI/Tree', window renderer 'Falagard/Tree' and Look'N'Feel 'ProjectLook/Tree'.
07/11/2009 15:32:50 (InfL1)   Attempting to create an Imageset from the information specified in file 'background.imageset'.
07/11/2009 15:32:50 (InfL1)   Started creation of Imageset from XML specification:
07/11/2009 15:32:50 (InfL1)   ---- CEGUI Imageset name: background
07/11/2009 15:32:50 (InfL1)   ---- Source texture file: background.tga in resource group: (Default)
07/11/2009 15:32:50 (InfL1)   Attempting to create an Imageset from the information specified in file 'gameborder.imageset'.
07/11/2009 15:32:50 (InfL1)   Started creation of Imageset from XML specification:
07/11/2009 15:32:50 (InfL1)   ---- CEGUI Imageset name: gameborder
07/11/2009 15:32:50 (InfL1)   ---- Source texture file: gameborder.tga in resource group: (Default)
07/11/2009 15:32:50 (InfL1)   Attempting to create an Imageset from the information specified in file 'cursors.imageset'.
07/11/2009 15:32:50 (InfL1)   Started creation of Imageset from XML specification:
07/11/2009 15:32:50 (InfL1)   ---- CEGUI Imageset name: cursors
07/11/2009 15:32:50 (InfL1)   ---- Source texture file: cursors.tga in resource group: (Default)
07/11/2009 15:32:50 (InfL1)   Attempting to create an Imageset from the information specified in file 'ProjectguiButtons.imageset'.
07/11/2009 15:32:50 (InfL1)   Started creation of Imageset from XML specification:
07/11/2009 15:32:50 (InfL1)   ---- CEGUI Imageset name: ProjectguiButtons
07/11/2009 15:32:50 (InfL1)   ---- Source texture file: ProjectguiButtons.tga in resource group: (Default)
07/11/2009 15:32:50 (InfL1)   Attempting to create Font from the information specified in file 'Button.font'.
07/11/2009 15:32:50 (InfL1)   Started creation of FreeType Font:
07/11/2009 15:32:50 (InfL1)   ---- CEGUI font name: Button
07/11/2009 15:32:50 (InfL1)   ----     Source file: Grotto.ttf in resource group: (Default)
07/11/2009 15:32:50 (InfL1)   ---- Real point size: 18
07/11/2009 15:32:50 (InfL1)   Succsessfully loaded 69 glyphs
07/11/2009 15:32:50 (InfL1)   Attempting to create Font from the information specified in file 'Title.font'.
07/11/2009 15:32:50 (InfL1)   Started creation of FreeType Font:
07/11/2009 15:32:50 (InfL1)   ---- CEGUI font name: Title
07/11/2009 15:32:50 (InfL1)   ----     Source file: Grotto.ttf in resource group: (Default)
07/11/2009 15:32:50 (InfL1)   ---- Real point size: 175
07/11/2009 15:32:50 (InfL1)   Succsessfully loaded 126 glyphs
07/11/2009 15:32:50 (InfL1)   Attempting to create Font from the information specified in file 'Subtitle.font'.
07/11/2009 15:32:50 (InfL1)   Started creation of FreeType Font:
07/11/2009 15:32:50 (InfL1)   ---- CEGUI font name: Subtitle
07/11/2009 15:32:50 (InfL1)   ----     Source file: Grotto.ttf in resource group: (Default)
07/11/2009 15:32:50 (InfL1)   ---- Real point size: 75
07/11/2009 15:32:50 (InfL1)   Succsessfully loaded 126 glyphs
07/11/2009 15:32:50 (InfL1)   ---- Successfully completed loading of GUI layout from 'Project.layout' ----
07/11/2009 15:32:50 (InfL1)   Attempting to create Imageset 'Title_auto_glyph_images_ ' with texture only.
07/11/2009 15:32:50 (InfL1)   ---- Successfully completed loading of GUI layout from 'Projectmain.layout' ----
07/11/2009 15:32:50 (InfL1)   Attempting to create Imageset 'Subtitle_auto_glyph_images_ ' with texture only.
07/11/2009 15:32:51 (InfL1)   ---- Successfully completed loading of GUI layout from 'ProjectmainNew.layout' ----
07/11/2009 15:32:51 (InfL1)   Attempting to create Imageset 'Text_auto_glyph_images_ ' with texture only.
07/11/2009 15:32:51 (InfL1)   ---- Successfully completed loading of GUI layout from 'ProjectmainOptions.layout' ----
07/11/2009 15:32:51 (InfL1)   Attempting to create Imageset 'Button_auto_glyph_images_ ' with texture only.
07/11/2009 15:33:45 (InfL1)   ---- Begining CEGUI System destruction ----
07/11/2009 15:33:45 (InfL1)   ---- Begining cleanup of GUI Scheme system ----


Weirdly enough, on running the program today I am getting the exact same error message - Access violation reading location 0x014ba950. Is it normal that it should be trying to get to the exact same memory address? :?

QuestOfDreams
Just popping in
Just popping in
Posts: 7
Joined: Wed Nov 04, 2009 16:32
Location: Austria
Contact:

Re: Deleting the CEGUI::System causes an access violation

Postby QuestOfDreams » Sun Nov 08, 2009 12:02

It's crashing somewhere in the destructor of the CEGUI::System that deletes all managers (e.g. the SchemeManager which gives the last entry in your log file). So that's where you should look at with a debugger... Just out of curiosity, is there any reason why you're using this old version 0.5.1 of CEGUI?

LearnerPlates
Just popping in
Just popping in
Posts: 20
Joined: Mon Jun 08, 2009 06:05

Re: Deleting the CEGUI::System causes an access violation

Postby LearnerPlates » Sun Nov 08, 2009 14:18

Hmm, I'm linking to version 0.6.2 of CEGUI, but I guess a lot of the source is whatever is included with Ogre (v1.6.4) - could that really be making a difference?

Unfortunately, I wouldn't have a clue about how to debug the source of CEGUI, but I did try manually calling unloadAllSchemes() and the program generates the same error (Access violation reading location 0x014ba950). I'm only using one scheme in my program, which I load like this:

Code: Select all

pSmgr = CEGUI::SchemeManager::getSingletonPtr();
pSmgr->loadScheme( "ProjectLook.scheme" );


Is there anything else I need to be doing to satisfy the SchemeManager and stop this error from occurring? :?

User avatar
Jabberwocky
Quite a regular
Quite a regular
Posts: 86
Joined: Wed Oct 31, 2007 18:16
Location: Canada
Contact:

Re: Deleting the CEGUI::System causes an access violation

Postby Jabberwocky » Sun Nov 08, 2009 15:35

LearnerPlates wrote:Hmm, I'm linking to version 0.6.2 of CEGUI


LearnerPlates wrote:07/11/2009 15:32:50 (InfL1) ---- CEGUI System initialisation completed ----
07/11/2009 15:32:50 (InfL1) ---- Version 0.5.1 ----


You're obviously not linking to what you think you're linking to.
Some kind of library/dll mismatch could be causing your crash.
The Salvation Prophecy
Space Combat. Planet Exploration. Strategic Domination.


Return to “Help”

Who is online

Users browsing this forum: Google [Bot] and 9 guests