Kirix Support Forums

wxAUI exception

Please post all general questions, comments, bug reports, and any other wxAUI feedback here.

wxAUI exception

Postby Chris Jones on Fri Sep 22, 2006 6:36 am

ive copied this post from the post i made on the wxWidgets forums, they directed me here

im using wxWidgets 2.7 and i want to use wxAUI in my project. when running the sample and the code from my project, it crashes randomly when moving a pane. i say randomly because i cant get it to crash by doing the same thing (i dont think). but it crashes alot, so its not something minor that i can work with.

i get

Unhandled exception at 0x00420d79 in auidemo.exe: 0xC0000005: Access violation reading location 0xfeef00ea.



in the code (in window.h)

Code: Select all
void Move(int x, int y, int flags = wxSIZE_USE_EXISTING)
{ DoSetSize(x, y, wxDefaultCoord, wxDefaultCoord, flags); }


it crashes on the second line of that code.

going back a step in the callstack, it points to line 3611 in framemanager.cpp

Code: Select all
m_action_window->Move(pt.x - m_action_offset.x, pt.y - m_action_offset.y);


the debugger shows "m_action_window" as being a valid address, BUT the variables inside seem to be invalid values, such as "0xfeeefeee" etc for quite alot of the members.

i cant work out why this is happening and i am new to wxWidgets so dont know many details,

is this a known bug with 2.7? or wxAUI? is it fixable easily?
any ideas?

thanks

Chris
Chris Jones
Registered User
 
Posts: 7
Joined: Fri Sep 22, 2006 6:24 am

Postby Chris Jones on Fri Sep 22, 2006 7:16 am

i just checked out wxWidgets from their CVS and built that, the AUI sample crashes right at the start with that!

i get an unhandled exception at the return m_art line

Code: Select all
wxDockArt* wxFrameManager::GetArtProvider() const
{
    return m_art;
}


looking back with the call stack, m_frame seems to have an invalid value in the settings panel code

Code: Select all
void OnPaneBorderSize(wxSpinEvent& event)
{
    m_frame->GetDockArt()->SetMetric(wxAUI_ART_PANE_BORDER_SIZE,
                                         event.GetPosition());
    m_frame->DoUpdate();
}


i hope someone has the answers, i really want to use AUI! :)

Chris
Chris Jones
Registered User
 
Posts: 7
Joined: Fri Sep 22, 2006 6:24 am

Postby Chris Jones on Sat Sep 23, 2006 2:38 pm

anyone?
Chris Jones
Registered User
 
Posts: 7
Joined: Fri Sep 22, 2006 6:24 am

Postby Peek on Mon Oct 30, 2006 4:43 pm

I found a fix for this bug a while back, but it appears that it didn't make into 2.7. For details, see http://www.kirix.com/community/forums//viewtopic.php?t=130.
Peek
Registered User
 
Posts: 10
Joined: Thu Mar 30, 2006 12:56 pm

Postby Ben on Tue Oct 31, 2006 2:51 am

Hi all,

This random crash is fixed in cvs.

Thanks,
Ben
User avatar
Ben
Kirix Support Team
 
Posts: 525
Joined: Mon Dec 19, 2005 6:29 am

Return to wxAUI Questions, Thoughts & Feedback