Hello -
I recently came across wxWidgets, and wxAui and it looks like the combination is what I need. I'm a little worried about the number of memory leaks that I've come across just compiling and running the samples.
I added a tabbed notebook using your code, and the tabframe that is created from this function call is not being released:
wxAuiTabCtrl* wxAuiMultiNotebook::GetActiveTabCtrl()
.
.
.
// If there is no tabframe at all, create one
wxTabFrame* tabframe = new wxTabFrame;
tabframe->SetTabCtrlHeight(m_tab_ctrl_height);
tabframe->m_tabs = new wxAuiTabCtrl(this,
m_tab_id_counter++,
wxDefaultPosition,
wxDefaultSize,
wxNO_BORDER);
The function wxAuiMultiNotebook::DeletePage(size_t page_idx) never gets called, it looks like this function should be called to delete the pages, is that right?
Thanks
Gary
Kirix Support Forums
memory leaks
2 posts
• Page 1 of 1
Hi
I made this change, and the leaks went away.
wxAuiMultiNotebook::~wxAuiMultiNotebook()
{
m_mgr.UnInit();
while (GetPageCount() > 0)
DeletePage( GetPageCount()-1 );
}
I used the memory tool from here to catch the leak, works great:
http://www.softwareverify.com/
Best regards,
Gary
I made this change, and the leaks went away.
wxAuiMultiNotebook::~wxAuiMultiNotebook()
{
m_mgr.UnInit();
while (GetPageCount() > 0)
DeletePage( GetPageCount()-1 );
}
I used the memory tool from here to catch the leak, works great:
http://www.softwareverify.com/
Best regards,
Gary
- garylyb
- Registered User
- Posts: 2
- Joined: Sat Aug 19, 2006 8:04 pm
2 posts
· Page 1 of 1
Return to wxAUI Questions, Thoughts & Feedback