[Solved] Memory leaks with D3D11

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

DBX
Just popping in
Just popping in
Posts: 6
Joined: Sun Aug 24, 2014 05:00

[Solved] Memory leaks with D3D11

Postby DBX » Tue Aug 26, 2014 04:19

Using a dynamically-linked 32-bit build in Windows 8 x64 with the Direct3D 11 renderer, doing nothing but bootstrapping on startup and calling CEGUI::Direct3D11Renderer::destroySystem() appears to cause memory leaks. No UI created, no system defaults set or anything. Just simple init and destruction. There are more leaks when I uncomment code that sets defaults and creates windows, but does not appear to leak more the longer the app runs. When I comment out the init and destroy, no leaks are reported.

Code: Select all

26/08/2014 00:16:51 (Std)    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
26/08/2014 00:16:51 (Std)    +                     Crazy Eddie's GUI System - Event log                    +
26/08/2014 00:16:51 (Std)    +                          (http://www.cegui.org.uk/)                         +
26/08/2014 00:16:51 (Std)    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

26/08/2014 00:16:51 (Std)    CEGUI::Logger singleton created. (04608658)
26/08/2014 00:16:51 (Std)    
26/08/2014 00:16:51 (Std)    ********************************************************************************
26/08/2014 00:16:51 (Std)    * Important:                                                                   *
26/08/2014 00:16:51 (Std)    *     To get support at the CEGUI forums, you must post _at least_ the section *
26/08/2014 00:16:51 (Std)    *     of this log file indicated below.  Failure to do this will result in no  *
26/08/2014 00:16:51 (Std)    *     support being given; please do not waste our time.                       *
26/08/2014 00:16:51 (Std)    ********************************************************************************
26/08/2014 00:16:51 (Std)    ********************************************************************************
26/08/2014 00:16:51 (Std)    * -------- START OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM       -------- *
26/08/2014 00:16:51 (Std)    ********************************************************************************
26/08/2014 00:16:51 (Std)    ---- Version: 0.8.4 (Build: Aug 25 2014 Debug Microsoft Windows MSVC++ 11.0 32 bit) ----
26/08/2014 00:16:51 (Std)    ---- Renderer module is: CEGUI::Direct3D11Renderer - Official Direct3D 11 based 2nd generation renderer module. ----
26/08/2014 00:16:51 (Std)    ---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
26/08/2014 00:16:51 (Std)    ---- Image Codec module is: FreeImageCodec - FreeImage based image codec ----
26/08/2014 00:16:51 (Std)    ---- Scripting module is: None ----
26/08/2014 00:16:51 (Std)    ********************************************************************************
26/08/2014 00:16:51 (Std)    * -------- END OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM         -------- *
26/08/2014 00:16:51 (Std)    ********************************************************************************
26/08/2014 00:16:51 (Std)    
26/08/2014 00:16:51 (Std)    ---- Begining CEGUI System initialisation ----
26/08/2014 00:16:51 (Std)    [CEGUI::ImageManager] Singleton created (04636B48)
26/08/2014 00:16:51 (Std)    [CEGUI::ImageManager] Registered Image type: BasicImage
26/08/2014 00:16:51 (Std)    CEGUI::FontManager singleton created. (04636FF0)
26/08/2014 00:16:51 (Std)    CEGUI::WindowFactoryManager singleton created
26/08/2014 00:16:51 (Std)    CEGUI::WindowManager singleton created (046378D8)
26/08/2014 00:16:51 (Std)    CEGUI::SchemeManager singleton created. (04638058)
26/08/2014 00:16:51 (Std)    CEGUI::GlobalEventSet singleton created. (04638198)
26/08/2014 00:16:51 (Std)    CEGUI::AnimationManager singleton created (04638480)
26/08/2014 00:16:51 (Std)    CEGUI::WidgetLookManager singleton created. (04639398)
26/08/2014 00:16:51 (Std)    CEGUI::WindowRendererManager singleton created (046386E8)
26/08/2014 00:16:51 (Std)    CEGUI::RenderEffectManager singleton created (04638AC8)
26/08/2014 00:16:51 (Std)    Created WindowFactory for 'DefaultWindow' windows.
26/08/2014 00:16:51 (Std)    WindowFactory for 'DefaultWindow' windows added. (0463BF00)
26/08/2014 00:16:51 (Std)    Created WindowFactory for 'DragContainer' windows.
26/08/2014 00:16:51 (Std)    WindowFactory for 'DragContainer' windows added. (0463C0C0)
26/08/2014 00:16:51 (Std)    Created WindowFactory for 'ScrolledContainer' windows.
26/08/2014 00:16:51 (Std)    WindowFactory for 'ScrolledContainer' windows added. (0463C3C0)
26/08/2014 00:16:51 (Std)    Created WindowFactory for 'ClippedContainer' windows.
26/08/2014 00:16:51 (Std)    WindowFactory for 'ClippedContainer' windows added. (0463C580)
26/08/2014 00:16:51 (Std)    Created WindowFactory for 'CEGUI/PushButton' windows.
26/08/2014 00:16:51 (Std)    WindowFactory for 'CEGUI/PushButton' windows added. (0463C740)
26/08/2014 00:16:51 (Std)    Created WindowFactory for 'CEGUI/RadioButton' windows.
26/08/2014 00:16:51 (Std)    WindowFactory for 'CEGUI/RadioButton' windows added. (0463C900)
26/08/2014 00:16:51 (Std)    Created WindowFactory for 'CEGUI/Combobox' windows.
26/08/2014 00:16:51 (Std)    WindowFactory for 'CEGUI/Combobox' windows added. (0463CAC0)
26/08/2014 00:16:51 (Std)    Created WindowFactory for 'CEGUI/ComboDropList' windows.
26/08/2014 00:16:51 (Std)    WindowFactory for 'CEGUI/ComboDropList' windows added. (0463CC80)
26/08/2014 00:16:51 (Std)    Created WindowFactory for 'CEGUI/Editbox' windows.
26/08/2014 00:16:51 (Std)    WindowFactory for 'CEGUI/Editbox' windows added. (0463CE40)
26/08/2014 00:16:51 (Std)    Created WindowFactory for 'CEGUI/FrameWindow' windows.
26/08/2014 00:16:51 (Std)    WindowFactory for 'CEGUI/FrameWindow' windows added. (0463D000)
26/08/2014 00:16:51 (Std)    Created WindowFactory for 'CEGUI/ItemEntry' windows.
26/08/2014 00:16:51 (Std)    WindowFactory for 'CEGUI/ItemEntry' windows added. (0463D1C0)
26/08/2014 00:16:51 (Std)    Created WindowFactory for 'CEGUI/Listbox' windows.
26/08/2014 00:16:51 (Std)    WindowFactory for 'CEGUI/Listbox' windows added. (0463D380)
26/08/2014 00:16:51 (Std)    Created WindowFactory for 'CEGUI/ListHeader' windows.
26/08/2014 00:16:51 (Std)    WindowFactory for 'CEGUI/ListHeader' windows added. (0463D540)
26/08/2014 00:16:51 (Std)    Created WindowFactory for 'CEGUI/ListHeaderSegment' windows.
26/08/2014 00:16:51 (Std)    WindowFactory for 'CEGUI/ListHeaderSegment' windows added. (0463D700)
26/08/2014 00:16:51 (Std)    Created WindowFactory for 'CEGUI/Menubar' windows.
26/08/2014 00:16:51 (Std)    WindowFactory for 'CEGUI/Menubar' windows added. (0463D990)
26/08/2014 00:16:51 (Std)    Created WindowFactory for 'CEGUI/PopupMenu' windows.
26/08/2014 00:16:51 (Std)    WindowFactory for 'CEGUI/PopupMenu' windows added. (0463DB50)
26/08/2014 00:16:51 (Std)    Created WindowFactory for 'CEGUI/MenuItem' windows.
26/08/2014 00:16:51 (Std)    WindowFactory for 'CEGUI/MenuItem' windows added. (0463DD10)
26/08/2014 00:16:51 (Std)    Created WindowFactory for 'CEGUI/MultiColumnList' windows.
26/08/2014 00:16:51 (Std)    WindowFactory for 'CEGUI/MultiColumnList' windows added. (0463DED0)
26/08/2014 00:16:51 (Std)    Created WindowFactory for 'CEGUI/MultiLineEditbox' windows.
26/08/2014 00:16:51 (Std)    WindowFactory for 'CEGUI/MultiLineEditbox' windows added. (0463E090)
26/08/2014 00:16:51 (Std)    Created WindowFactory for 'CEGUI/ProgressBar' windows.
26/08/2014 00:16:51 (Std)    WindowFactory for 'CEGUI/ProgressBar' windows added. (0463E250)
26/08/2014 00:16:51 (Std)    Created WindowFactory for 'CEGUI/ScrollablePane' windows.
26/08/2014 00:16:51 (Std)    WindowFactory for 'CEGUI/ScrollablePane' windows added. (0463E410)
26/08/2014 00:16:51 (Std)    Created WindowFactory for 'CEGUI/Scrollbar' windows.
26/08/2014 00:16:51 (Std)    WindowFactory for 'CEGUI/Scrollbar' windows added. (0463E5D0)
26/08/2014 00:16:51 (Std)    Created WindowFactory for 'CEGUI/Slider' windows.
26/08/2014 00:16:51 (Std)    WindowFactory for 'CEGUI/Slider' windows added. (0463E790)
26/08/2014 00:16:51 (Std)    Created WindowFactory for 'CEGUI/Spinner' windows.
26/08/2014 00:16:51 (Std)    WindowFactory for 'CEGUI/Spinner' windows added. (0463E950)
26/08/2014 00:16:51 (Std)    Created WindowFactory for 'CEGUI/TabButton' windows.
26/08/2014 00:16:51 (Std)    WindowFactory for 'CEGUI/TabButton' windows added. (0463EB10)
26/08/2014 00:16:51 (Std)    Created WindowFactory for 'CEGUI/TabControl' windows.
26/08/2014 00:16:51 (Std)    WindowFactory for 'CEGUI/TabControl' windows added. (0463ECD0)
26/08/2014 00:16:51 (Std)    Created WindowFactory for 'CEGUI/Thumb' windows.
26/08/2014 00:16:51 (Std)    WindowFactory for 'CEGUI/Thumb' windows added. (0463EE90)
26/08/2014 00:16:51 (Std)    Created WindowFactory for 'CEGUI/Titlebar' windows.
26/08/2014 00:16:51 (Std)    WindowFactory for 'CEGUI/Titlebar' windows added. (0463F050)
26/08/2014 00:16:51 (Std)    Created WindowFactory for 'CEGUI/ToggleButton' windows.
26/08/2014 00:16:51 (Std)    WindowFactory for 'CEGUI/ToggleButton' windows added. (0463F210)
26/08/2014 00:16:51 (Std)    Created WindowFactory for 'CEGUI/Tooltip' windows.
26/08/2014 00:16:51 (Std)    WindowFactory for 'CEGUI/Tooltip' windows added. (0463F4B8)
26/08/2014 00:16:51 (Std)    Created WindowFactory for 'CEGUI/ItemListbox' windows.
26/08/2014 00:16:51 (Std)    WindowFactory for 'CEGUI/ItemListbox' windows added. (0463F678)
26/08/2014 00:16:51 (Std)    Created WindowFactory for 'CEGUI/GroupBox' windows.
26/08/2014 00:16:51 (Std)    WindowFactory for 'CEGUI/GroupBox' windows added. (0463F838)
26/08/2014 00:16:51 (Std)    Created WindowFactory for 'CEGUI/Tree' windows.
26/08/2014 00:16:51 (Std)    WindowFactory for 'CEGUI/Tree' windows added. (0463F9F8)
26/08/2014 00:16:51 (Std)    Created WindowFactory for 'LayoutCell' windows.
26/08/2014 00:16:51 (Std)    WindowFactory for 'LayoutCell' windows added. (0463FBB8)
26/08/2014 00:16:51 (Std)    Created WindowFactory for 'HorizontalLayoutContainer' windows.
26/08/2014 00:16:51 (Std)    WindowFactory for 'HorizontalLayoutContainer' windows added. (0463FD78)
26/08/2014 00:16:51 (Std)    Created WindowFactory for 'VerticalLayoutContainer' windows.
26/08/2014 00:16:51 (Std)    WindowFactory for 'VerticalLayoutContainer' windows added. (0463FF38)
26/08/2014 00:16:51 (Std)    Created WindowFactory for 'GridLayoutContainer' windows.
26/08/2014 00:16:51 (Std)    WindowFactory for 'GridLayoutContainer' windows added. (046400F8)
26/08/2014 00:16:51 (Std)    CEGUI::System singleton created. (046016C8)
26/08/2014 00:16:51 (Std)    ---- CEGUI System initialisation completed ----
26/08/2014 00:16:51 (Std)    
26/08/2014 00:16:54 (Std)    ---- Begining CEGUI System destruction ----
26/08/2014 00:16:54 (Std)    WindowFactory for 'CEGUI/Tree' windows removed. (0463F9F8)
26/08/2014 00:16:54 (Std)    Deleted WindowFactory for 'CEGUI/Tree' windows.
26/08/2014 00:16:54 (Std)    WindowFactory for 'LayoutCell' windows removed. (0463FBB8)
26/08/2014 00:16:54 (Std)    Deleted WindowFactory for 'LayoutCell' windows.
26/08/2014 00:16:54 (Std)    WindowFactory for 'CEGUI/Thumb' windows removed. (0463EE90)
26/08/2014 00:16:54 (Std)    Deleted WindowFactory for 'CEGUI/Thumb' windows.
26/08/2014 00:16:54 (Std)    WindowFactory for 'CEGUI/Slider' windows removed. (0463E790)
26/08/2014 00:16:54 (Std)    Deleted WindowFactory for 'CEGUI/Slider' windows.
26/08/2014 00:16:54 (Std)    WindowFactory for 'CEGUI/Editbox' windows removed. (0463CE40)
26/08/2014 00:16:54 (Std)    Deleted WindowFactory for 'CEGUI/Editbox' windows.
26/08/2014 00:16:54 (Std)    WindowFactory for 'CEGUI/Listbox' windows removed. (0463D380)
26/08/2014 00:16:54 (Std)    Deleted WindowFactory for 'CEGUI/Listbox' windows.
26/08/2014 00:16:54 (Std)    WindowFactory for 'CEGUI/Menubar' windows removed. (0463D990)
26/08/2014 00:16:54 (Std)    Deleted WindowFactory for 'CEGUI/Menubar' windows.
26/08/2014 00:16:54 (Std)    WindowFactory for 'CEGUI/Spinner' windows removed. (0463E950)
26/08/2014 00:16:54 (Std)    Deleted WindowFactory for 'CEGUI/Spinner' windows.
26/08/2014 00:16:54 (Std)    WindowFactory for 'CEGUI/Tooltip' windows removed. (0463F4B8)
26/08/2014 00:16:54 (Std)    Deleted WindowFactory for 'CEGUI/Tooltip' windows.
26/08/2014 00:16:54 (Std)    WindowFactory for 'DefaultWindow' windows removed. (0463BF00)
26/08/2014 00:16:54 (Std)    Deleted WindowFactory for 'DefaultWindow' windows.
26/08/2014 00:16:54 (Std)    WindowFactory for 'DragContainer' windows removed. (0463C0C0)
26/08/2014 00:16:54 (Std)    Deleted WindowFactory for 'DragContainer' windows.
26/08/2014 00:16:54 (Std)    WindowFactory for 'CEGUI/Combobox' windows removed. (0463CAC0)
26/08/2014 00:16:54 (Std)    Deleted WindowFactory for 'CEGUI/Combobox' windows.
26/08/2014 00:16:54 (Std)    WindowFactory for 'CEGUI/GroupBox' windows removed. (0463F838)
26/08/2014 00:16:54 (Std)    Deleted WindowFactory for 'CEGUI/GroupBox' windows.
26/08/2014 00:16:54 (Std)    WindowFactory for 'CEGUI/MenuItem' windows removed. (0463DD10)
26/08/2014 00:16:54 (Std)    Deleted WindowFactory for 'CEGUI/MenuItem' windows.
26/08/2014 00:16:54 (Std)    WindowFactory for 'CEGUI/Titlebar' windows removed. (0463F050)
26/08/2014 00:16:54 (Std)    Deleted WindowFactory for 'CEGUI/Titlebar' windows.
26/08/2014 00:16:54 (Std)    WindowFactory for 'CEGUI/ItemEntry' windows removed. (0463D1C0)
26/08/2014 00:16:54 (Std)    Deleted WindowFactory for 'CEGUI/ItemEntry' windows.
26/08/2014 00:16:54 (Std)    WindowFactory for 'CEGUI/PopupMenu' windows removed. (0463DB50)
26/08/2014 00:16:54 (Std)    Deleted WindowFactory for 'CEGUI/PopupMenu' windows.
26/08/2014 00:16:54 (Std)    WindowFactory for 'CEGUI/Scrollbar' windows removed. (0463E5D0)
26/08/2014 00:16:54 (Std)    Deleted WindowFactory for 'CEGUI/Scrollbar' windows.
26/08/2014 00:16:54 (Std)    WindowFactory for 'CEGUI/TabButton' windows removed. (0463EB10)
26/08/2014 00:16:54 (Std)    Deleted WindowFactory for 'CEGUI/TabButton' windows.
26/08/2014 00:16:54 (Std)    WindowFactory for 'CEGUI/ListHeader' windows removed. (0463D540)
26/08/2014 00:16:54 (Std)    Deleted WindowFactory for 'CEGUI/ListHeader' windows.
26/08/2014 00:16:54 (Std)    WindowFactory for 'CEGUI/PushButton' windows removed. (0463C740)
26/08/2014 00:16:54 (Std)    Deleted WindowFactory for 'CEGUI/PushButton' windows.
26/08/2014 00:16:54 (Std)    WindowFactory for 'CEGUI/TabControl' windows removed. (0463ECD0)
26/08/2014 00:16:54 (Std)    Deleted WindowFactory for 'CEGUI/TabControl' windows.
26/08/2014 00:16:54 (Std)    WindowFactory for 'ClippedContainer' windows removed. (0463C580)
26/08/2014 00:16:54 (Std)    Deleted WindowFactory for 'ClippedContainer' windows.
26/08/2014 00:16:54 (Std)    WindowFactory for 'CEGUI/FrameWindow' windows removed. (0463D000)
26/08/2014 00:16:54 (Std)    Deleted WindowFactory for 'CEGUI/FrameWindow' windows.
26/08/2014 00:16:54 (Std)    WindowFactory for 'CEGUI/ItemListbox' windows removed. (0463F678)
26/08/2014 00:16:54 (Std)    Deleted WindowFactory for 'CEGUI/ItemListbox' windows.
26/08/2014 00:16:54 (Std)    WindowFactory for 'CEGUI/ProgressBar' windows removed. (0463E250)
26/08/2014 00:16:54 (Std)    Deleted WindowFactory for 'CEGUI/ProgressBar' windows.
26/08/2014 00:16:54 (Std)    WindowFactory for 'CEGUI/RadioButton' windows removed. (0463C900)
26/08/2014 00:16:54 (Std)    Deleted WindowFactory for 'CEGUI/RadioButton' windows.
26/08/2014 00:16:54 (Std)    WindowFactory for 'ScrolledContainer' windows removed. (0463C3C0)
26/08/2014 00:16:54 (Std)    Deleted WindowFactory for 'ScrolledContainer' windows.
26/08/2014 00:16:54 (Std)    WindowFactory for 'CEGUI/ToggleButton' windows removed. (0463F210)
26/08/2014 00:16:54 (Std)    Deleted WindowFactory for 'CEGUI/ToggleButton' windows.
26/08/2014 00:16:54 (Std)    WindowFactory for 'CEGUI/ComboDropList' windows removed. (0463CC80)
26/08/2014 00:16:54 (Std)    Deleted WindowFactory for 'CEGUI/ComboDropList' windows.
26/08/2014 00:16:54 (Std)    WindowFactory for 'GridLayoutContainer' windows removed. (046400F8)
26/08/2014 00:16:54 (Std)    Deleted WindowFactory for 'GridLayoutContainer' windows.
26/08/2014 00:16:54 (Std)    WindowFactory for 'CEGUI/ScrollablePane' windows removed. (0463E410)
26/08/2014 00:16:54 (Std)    Deleted WindowFactory for 'CEGUI/ScrollablePane' windows.
26/08/2014 00:16:54 (Std)    WindowFactory for 'CEGUI/MultiColumnList' windows removed. (0463DED0)
26/08/2014 00:16:54 (Std)    Deleted WindowFactory for 'CEGUI/MultiColumnList' windows.
26/08/2014 00:16:54 (Std)    WindowFactory for 'CEGUI/MultiLineEditbox' windows removed. (0463E090)
26/08/2014 00:16:54 (Std)    Deleted WindowFactory for 'CEGUI/MultiLineEditbox' windows.
26/08/2014 00:16:54 (Std)    WindowFactory for 'CEGUI/ListHeaderSegment' windows removed. (0463D700)
26/08/2014 00:16:54 (Std)    Deleted WindowFactory for 'CEGUI/ListHeaderSegment' windows.
26/08/2014 00:16:54 (Std)    WindowFactory for 'VerticalLayoutContainer' windows removed. (0463FF38)
26/08/2014 00:16:54 (Std)    Deleted WindowFactory for 'VerticalLayoutContainer' windows.
26/08/2014 00:16:54 (Std)    WindowFactory for 'HorizontalLayoutContainer' windows removed. (0463FD78)
26/08/2014 00:16:54 (Std)    Deleted WindowFactory for 'HorizontalLayoutContainer' windows.
26/08/2014 00:16:54 (Std)    ---- Begining cleanup of GUI Scheme system ----
26/08/2014 00:16:54 (Std)    CEGUI::SchemeManager singleton destroyed. (04638058)
26/08/2014 00:16:54 (Std)    CEGUI::WindowManager singleton destroyed (046378D8)
26/08/2014 00:16:54 (Std)    CEGUI::WindowFactoryManager singleton destroyed
26/08/2014 00:16:54 (Std)    CEGUI::WidgetLookManager singleton destroyed. (04639398)
26/08/2014 00:16:54 (Std)    CEGUI::WindowRendererManager singleton destroyed (046386E8)
26/08/2014 00:16:54 (Std)    CEGUI::AnimationManager singleton destroyed (04638480)
26/08/2014 00:16:54 (Std)    CEGUI::RenderEffectManager singleton destroyed (04638AC8)
26/08/2014 00:16:54 (Std)    ---- Begining cleanup of Font system ----
26/08/2014 00:16:54 (Std)    CEGUI::FontManager singleton destroyed. (04636FF0)
26/08/2014 00:16:54 (Std)    [CEGUI::ImageManager] Unregistered Image type: BasicImage
26/08/2014 00:16:54 (Std)    [CEGUI::ImageManager] Singleton destroyed (04636B48)
26/08/2014 00:16:54 (Std)    CEGUI::GlobalEventSet singleton destroyed. (04638198)
26/08/2014 00:16:54 (Std)    CEGUI::System singleton destroyed. (046016C8)
26/08/2014 00:16:54 (Std)    ---- CEGUI System destruction completed ----
26/08/2014 00:16:54 (Std)    CEGUI::Logger singleton destroyed. (04608658)


Init

Code: Select all

      CEGUI::Direct3D11Renderer& myRenderer =
         CEGUI::Direct3D11Renderer::bootstrapSystem( renderer->GetDevice(), renderer->GetDeviceContext(), CEGUI_VERSION_ABI );
      m_UI = (void*) &myRenderer;


Destroy

Code: Select all

   GetUI(m_UI)->destroySystem();


Leak report

Code: Select all

Detected memory leaks!
Dumping objects ->
{5277} normal block at 0x0455AD10, 168 bytes long.
 Data: <  U x U x U x U > B8 B6 55 04 78 B8 55 04 78 B8 55 04 78 B8 55 04
{3072} normal block at 0x045522E8, 280 bytes long.
 Data: <0   .   8   .   > 30 00 00 00 2E 00 00 00 38 00 00 00 2E 00 00 00
{165} normal block at 0x0104FB28, 348 bytes long.
 Data: <C   E   G   U   > 43 00 00 00 45 00 00 00 47 00 00 00 55 00 00 00
{163} normal block at 0x0104DC98, 568 bytes long.
 Data: <F   a   l   a   > 46 00 00 00 61 00 00 00 6C 00 00 00 61 00 00 00
{162} normal block at 0x0104DB48, 276 bytes long.
 Data: <F   a   l   a   > 46 00 00 00 61 00 00 00 6C 00 00 00 61 00 00 00
{161} normal block at 0x0104D788, 8 bytes long.
 Data: <   Q    > C4 F0 9E 51 00 00 00 00
{160} normal block at 0x0104D698, 176 bytes long.
 Data: <                > 98 D6 04 01 98 D6 04 01 98 D6 04 01 01 01 CD CD
{158} normal block at 0x0104D650, 8 bytes long.
 Data: <," Q    > 2C 22 9D 51 00 00 00 00
{157} normal block at 0x0104D560, 176 bytes long.
 Data: <`   `   `       > 60 D5 04 01 60 D5 04 01 60 D5 04 01 01 01 CD CD
{156} normal block at 0x0104D518, 8 bytes long.
 Data: <t  Q    > 74 1B 9C 51 00 00 00 00
{155} normal block at 0x0104D038, 8 bytes long.
 Data: <   Q    > 00 17 9C 51 00 00 00 00
{154} normal block at 0x0104E688, 624 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{152} normal block at 0x0104E388, 708 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{150} normal block at 0x0104CFF0, 8 bytes long.
 Data: <   Q    > FC 89 9B 51 00 00 00 00
{149} normal block at 0x0104D428, 176 bytes long.
 Data: <(   (   (       > 28 D4 04 01 28 D4 04 01 28 D4 04 01 01 01 CD CD
{147} normal block at 0x0104DA10, 252 bytes long.
 Data: <a   b   c   d   > 61 00 00 00 62 00 00 00 63 00 00 00 64 00 00 00
{146} normal block at 0x0104D938, 152 bytes long.
 Data: <M   o   u   s   > 4D 00 00 00 6F 00 00 00 75 00 00 00 73 00 00 00
{145} normal block at 0x0104D868, 144 bytes long.
 Data: <M   o   u   s   > 4D 00 00 00 6F 00 00 00 75 00 00 00 73 00 00 00
Object dump complete.
The program '[888] game.exe' has exited with code 0 (0x0).


[Edit]

Actually, I get this even if I don't init. I thought init was causing it at first because when I commented out init, I commented out destroy, so no symbols were getting pulled in from any CEGUI DLL, so no lib was actually going to get linked in. Now that I comment out only init, and instead of commenting out destroy, I safeguard it, it causes symbols to be pulled in, so this has to do with statics somewhere in CEGUI. Luckily it looks like just some loose strings, so hopefully this is easy to fix.

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: Memory leaks with D3D11

Postby Ident » Tue Aug 26, 2014 05:59

There is sometimes false alarms regarding memory trackers when it comes to statics. However, i found and removed some memory leaks in the past, I doubt there is anything "serious" left in the stable branch and the releases.

As far as I see this looks like the standard MSVC memory leak tracking feature... Is this correct?

Like you said, those all look like static strings. Do you use Lua bindings or Python bindings, or anything like that? I can't find any <<"0.8.>> string being used anywhere outside python bindings in 0.8 branch.
CrazyEddie: "I don't like GUIs"

DBX
Just popping in
Just popping in
Posts: 6
Joined: Sun Aug 24, 2014 05:00

Re: Memory leaks with D3D11

Postby DBX » Wed Aug 27, 2014 02:17

Correct, the reporting is _CrtDumpMemoryLeaks();

Currently linking in

CEGUIBase-0_d.lib
CEGUICommonDialogs-0_d.lib
CEGUICoreWindowRendererSet_d.lib
CEGUIDirect3D11Renderer-0_d.lib
CEGUIExpatParser_d.lib
CEGUIFreeImageImageCodec_d.lib
CEGUINullRenderer-0_d.lib

So, no Lua and no Python.

When I init, register some things and create a window as a test, the leak report gets longer.

Code: Select all

Detected memory leaks!
Dumping objects ->
{120947} normal block at 0x043F09A0, 464 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120779} normal block at 0x043ECB40, 552 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120776} normal block at 0x043EC8D8, 552 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120773} normal block at 0x043EC668, 560 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120770} normal block at 0x043EC198, 548 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120767} normal block at 0x043EBD08, 500 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120764} normal block at 0x043EBAB8, 532 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120761} normal block at 0x043EB6A8, 388 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120758} normal block at 0x043EB098, 508 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120755} normal block at 0x043EB3A0, 712 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120752} normal block at 0x043EADA0, 700 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120749} normal block at 0x043EA8A0, 460 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120746} normal block at 0x043EA4A8, 436 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120648} normal block at 0x043E6DD8, 588 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120645} normal block at 0x043E68F0, 548 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120642} normal block at 0x043E64C0, 404 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120639} normal block at 0x043E58E0, 192 bytes long.
 Data: <{   t   o   p   > 7B 00 00 00 74 00 00 00 6F 00 00 00 70 00 00 00
{120638} normal block at 0x043E6210, 628 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120634} normal block at 0x043E5620, 388 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120631} normal block at 0x043E59E0, 1344 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120628} normal block at 0x043E5230, 500 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120623} normal block at 0x043E4D88, 572 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120620} normal block at 0x043E48E0, 496 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120617} normal block at 0x043E4680, 548 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120614} normal block at 0x043E4268, 380 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120611} normal block at 0x043E3FE8, 576 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120608} normal block at 0x043E3B78, 432 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120605} normal block at 0x043E3970, 460 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120602} normal block at 0x043E3558, 468 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120599} normal block at 0x043E3328, 496 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120596} normal block at 0x043E2EC8, 500 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120593} normal block at 0x043E2CD0, 440 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120590} normal block at 0x043E2A20, 624 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120587} normal block at 0x043E2590, 420 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120584} normal block at 0x043E21E8, 396 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120581} normal block at 0x043E1E70, 368 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120578} normal block at 0x043E1CA0, 400 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120575} normal block at 0x043E1940, 340 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120572} normal block at 0x043E1750, 436 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120569} normal block at 0x043E1390, 404 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120566} normal block at 0x043E11B0, 420 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120563} normal block at 0x043E0DF8, 412 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120560} normal block at 0x043E0A58, 396 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120557} normal block at 0x043E0708, 332 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120533} normal block at 0x043DFF28, 224 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120530} normal block at 0x043DFC68, 356 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120527} normal block at 0x043DF5B8, 368 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120524} normal block at 0x043DF768, 800 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120521} normal block at 0x043DF1E8, 480 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120518} normal block at 0x043DEE38, 340 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120515} normal block at 0x043DEC80, 380 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120512} normal block at 0x043DE8E8, 416 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120509} normal block at 0x043DE5C0, 264 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120506} normal block at 0x043DE350, 232 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120503} normal block at 0x043DE078, 368 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120500} normal block at 0x043DDD20, 360 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120497} normal block at 0x043D96C0, 260 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{120494} normal block at 0x043D7750, 272 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{117519} normal block at 0x04581208, 112 bytes long.
 Data: <  Y   Y   Y   Y > 18 09 59 04 18 09 59 04 18 09 59 04 18 09 59 04
{32078} normal block at 0x03BEF4E8, 404 bytes long.
 Data: <T   h   i   s   > 54 00 00 00 68 00 00 00 69 00 00 00 73 00 00 00
{32075} normal block at 0x03BEF160, 144 bytes long.
 Data: <T   h   i   s   > 54 00 00 00 68 00 00 00 69 00 00 00 73 00 00 00
{32032} normal block at 0x03BEA3E0, 536 bytes long.
 Data: <T   h   i   s   > 54 00 00 00 68 00 00 00 69 00 00 00 73 00 00 00
{32029} normal block at 0x03BE7890, 156 bytes long.
 Data: <T   h   i   s   > 54 00 00 00 68 00 00 00 69 00 00 00 73 00 00 00
{32026} normal block at 0x03BE8878, 288 bytes long.
 Data: <N   a   t   i   > 4E 00 00 00 61 00 00 00 74 00 00 00 69 00 00 00
{5277} normal block at 0x03BC2850, 168 bytes long.
 Data: < 1   3   3   3  > F8 31 BC 03 B8 33 BC 03 B8 33 BC 03 B8 33 BC 03
{3072} normal block at 0x03BB9DE0, 280 bytes long.
 Data: <0   .   8   .   > 30 00 00 00 2E 00 00 00 38 00 00 00 2E 00 00 00
{165} normal block at 0x007DFB98, 348 bytes long.
 Data: <C   E   G   U   > 43 00 00 00 45 00 00 00 47 00 00 00 55 00 00 00
{163} normal block at 0x007DDD08, 568 bytes long.
 Data: <F   a   l   a   > 46 00 00 00 61 00 00 00 6C 00 00 00 61 00 00 00
{162} normal block at 0x007DDBB8, 276 bytes long.
 Data: <F   a   l   a   > 46 00 00 00 61 00 00 00 6C 00 00 00 61 00 00 00
{161} normal block at 0x007DD7F8, 8 bytes long.
 Data: <  /Q    > C4 F0 2F 51 00 00 00 00
{160} normal block at 0x007DD708, 176 bytes long.
 Data: <  }   }   }     > 08 D7 7D 00 08 D7 7D 00 08 D7 7D 00 01 01 CD CD
{158} normal block at 0x007DD6C0, 8 bytes long.
 Data: <,".Q    > 2C 22 2E 51 00 00 00 00
{157} normal block at 0x007DD5D0, 176 bytes long.
 Data: <  }   }   }     > D0 D5 7D 00 D0 D5 7D 00 D0 D5 7D 00 01 01 CD CD
{156} normal block at 0x007DD588, 8 bytes long.
 Data: <t -Q    > 74 1B 2D 51 00 00 00 00
{155} normal block at 0x007DD0A8, 8 bytes long.
 Data: <  -Q    > 00 17 2D 51 00 00 00 00
{154} normal block at 0x007DE6F8, 624 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{152} normal block at 0x007DE3F8, 708 bytes long.
 Data: <P   r   o   p   > 50 00 00 00 72 00 00 00 6F 00 00 00 70 00 00 00
{150} normal block at 0x007DD060, 8 bytes long.
 Data: <  ,Q    > FC 89 2C 51 00 00 00 00
{149} normal block at 0x007DD498, 176 bytes long.
 Data: <  }   }   }     > 98 D4 7D 00 98 D4 7D 00 98 D4 7D 00 01 01 CD CD
{147} normal block at 0x007DDA80, 252 bytes long.
 Data: <a   b   c   d   > 61 00 00 00 62 00 00 00 63 00 00 00 64 00 00 00
{146} normal block at 0x007DD9A8, 152 bytes long.
 Data: <M   o   u   s   > 4D 00 00 00 6F 00 00 00 75 00 00 00 73 00 00 00
{145} normal block at 0x007DD8D8, 144 bytes long.
 Data: <M   o   u   s   > 4D 00 00 00 6F 00 00 00 75 00 00 00 73 00 00 00
Object dump complete.
The program '[7972] game.exe' has exited with code 0 (0x0).


This is the code I'm using. This was basically ripped from the tutorials, and I currently do not know if I need to manually destroy anything that this code creates.

Code: Select all

   {
      CEGUI::Direct3D11Renderer& myRenderer =
         CEGUI::Direct3D11Renderer::bootstrapSystem( renderer->GetDevice(), renderer->GetDeviceContext(), CEGUI_VERSION_ABI );
      m_UI = (void*) &myRenderer;

      {
         // initialise the required dirs for the DefaultResourceProvider
         CEGUI::DefaultResourceProvider* rp = static_cast<CEGUI::DefaultResourceProvider*>
               (CEGUI::System::getSingleton().getResourceProvider());
         rp->setResourceGroupDirectory("schemes", "ui/schemes/");
         rp->setResourceGroupDirectory("imagesets", "ui/imagesets/");
         rp->setResourceGroupDirectory("fonts", "ui/fonts/");
         rp->setResourceGroupDirectory("layouts", "ui/layouts/");
         rp->setResourceGroupDirectory("looknfeels", "ui/looknfeel/");
         rp->setResourceGroupDirectory("lua_scripts", "ui/lua_scripts/");
         // This is only really needed if you are using Xerces and need to
         // specify the schemas location
         rp->setResourceGroupDirectory("schemas", "ui/xml_schemas/");

         // set the default resource groups to be used
         CEGUI::ImageManager::setImagesetDefaultResourceGroup("imagesets");
         CEGUI::Font::setDefaultResourceGroup("fonts");
         CEGUI::Scheme::setDefaultResourceGroup("schemes");
         CEGUI::WidgetLookManager::setDefaultResourceGroup("looknfeels");
         CEGUI::WindowManager::setDefaultResourceGroup("layouts");
         CEGUI::ScriptModule::setDefaultResourceGroup("lua_scripts");
         // setup default group for validation schemas
         CEGUI::XMLParser* parser = CEGUI::System::getSingleton().getXMLParser();
         if (parser->isPropertyPresent("SchemaDefaultResourceGroup"))
         {
            parser->setProperty("SchemaDefaultResourceGroup", "schemas");
         }
      }

      CEGUI::SchemeManager::getSingleton().createFromFile("TaharezLook.scheme");

      CEGUI::WindowManager& wmgr = CEGUI::WindowManager::getSingleton();   

      CEGUI::Window* myRoot = wmgr.createWindow( "DefaultWindow", "root" );
      CEGUI::System::getSingleton().getDefaultGUIContext().setRootWindow( myRoot );

      CEGUI::FrameWindow* fWnd = static_cast<CEGUI::FrameWindow*>(
    wmgr.createWindow( "TaharezLook/FrameWindow", "testWindow" ));

      myRoot->addChild( fWnd );

      // position a quarter of the way in from the top-left of parent.
      fWnd->setPosition( CEGUI::UVector2( CEGUI::UDim( 0.25f, 0.0f ), CEGUI::UDim( 0.25f, 0.0f ) ) );
      // set size to be half the size of the parent
      fWnd->setSize( CEGUI::USize( CEGUI::UDim( 0.5f, 0.0f ), CEGUI::UDim( 0.5f, 0.0f ) ) );

      fWnd->setText( "Hello World!" );
   }

lucebac
Just can't stay away
Just can't stay away
Posts: 193
Joined: Sat May 24, 2014 21:55

Re: Memory leaks with D3D11

Postby lucebac » Wed Aug 27, 2014 07:43

Hi,
your deinitialisation problem is already known by the dev team and a corresponding bug is files here: http://cegui.org.uk/mantis/view.php?id=1019
I recommend you to look into the samples_framework regarding deinitialisation:
https://bitbucket.org/cegui/cegui/src/7 ... c/?at=v0-8

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: Memory leaks with D3D11

Postby Ident » Wed Aug 27, 2014 08:41

Code: Select all

 CEGUI::System::destroy();

Do you call this?

Additionally you must destroy your Renderer after you have destroyed your System:

Code: Select all

CEGUI::OpenGL3Renderer::destroy(static_cast<CEGUI::OpenGL3Renderer&>(*d_renderer));

The above code casts the pointer, which is simply of type Renderer*, to the specific subtype Renderer class - in this case OpenGL3Renderer. You can of course store the reference to the Renderer using the correct subtype from the beginning.

You will also need to destroy any GUIContexts, Textures and GeometryBuffers you "manually" created by directly calling the creation functions for these objects. Window, Images and other regularly created parts of CEGUI will be destroyed at CEGUI destruction automatically. You do not need to destroy them manually.

However, if you create a lot of windows in your application in run-time, you are advised to destroy them to reduce memory usage etc., but thats an entirely different story..
CrazyEddie: "I don't like GUIs"

DBX
Just popping in
Just popping in
Posts: 6
Joined: Sun Aug 24, 2014 05:00

Re: [Solved] Memory leaks with D3D11

Postby DBX » Tue Sep 16, 2014 00:20

Sorry for the late reply.

Ident wrote:

Code: Select all

 CEGUI::System::destroy();

Do you call this?


Yes, and it still reports leaks.

Additionally you must destroy your Renderer after you have destroyed your System


I saw this after I posted and tried that, but it still reports leaks.

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: [Solved] Memory leaks with D3D11

Postby Ident » Tue Sep 16, 2014 05:40

Like I said, there are frequently false reports in Memory leak trackers. If these leaks you see do not increase in run-time, I would assume this is a false flag. It probably detects some static strings. Clearly it's not in our hands to destroy static strings...

In fact I checked some of the "leaks" you mentioned and i found static variables with corresponding values:
TextUtils::DefaultAlphanumerical contains "abcd...."
There is also ones containing "Property..."
and "Mouse..."

In my opinion there is nothing to fix here, we did nothing wrong. Please try the following and tell us if it worked: http://stackoverflow.com/questions/2323 ... emoryleaks
CrazyEddie: "I don't like GUIs"

DBX
Just popping in
Just popping in
Posts: 6
Joined: Sun Aug 24, 2014 05:00

Re: [Solved] Memory leaks with D3D11

Postby DBX » Wed Sep 17, 2014 03:42

No worries. I was just answering some of the questions. This isn't stopping any of my development.

Thanks for the link to the Stack Overflow post. Using that instead of _CrtDumpMemoryLeaks() hides those reports and does report real memory leaks. Put one in deliberately to test.

Thanks for the quick responses, even if I'm not so quick myself.

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: [Solved] Memory leaks with D3D11

Postby Ident » Wed Sep 17, 2014 05:52

Hah, so it was just that flag ;)
That also explains why I probably never encountered these leaks - I always used that flag. And don't worry about not responding fast.

At least this can be considered fully solved and CEGUI contained no leaks ;)
CrazyEddie: "I don't like GUIs"


Return to “Help”

Who is online

Users browsing this forum: No registered users and 4 guests