wxAUI: dragging toolbar causes a crash on windows

View: New views
2 Messages — Rating Filter:   Alert me  

wxAUI: dragging toolbar causes a crash on windows

by Eran Ifrah :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All,

Recently I upgraded my WX version from 2.8.7 -> 2.8.10.

All went smooth, nothing was broken, until I tried to drag a toolbar - at that point my application crashed.

Some details:
I am using wxAUI in my application, and wxToolBar (note: I am *not* using wxAuiToolbar)
My WX version is 2.8.10, g++ 3.4.5 (MinGW stable)
Windows XP SP3

Running my application under gdb, with WX built in debug mode, shows the following stack trace:

#0  0x670f3392 in wxAuiManager::OnFloatingPaneMoveStart (this=0x5649840, wnd=0x5254100) at ../../src/aui/framemanager.cpp:3449
#1  0x670fdfe8 in wxAuiFloatingFrame::OnMoveStart (this=0x56ba1a0) at ../../src/aui/floatpane.cpp:279
#2  0x670fdbea in wxAuiFloatingFrame::OnMoveEvent (this=0x56ba1a0, event=@0x22e440) at ../../src/aui/floatpane.cpp:182

Examining the variables in the OnFloatingPaneMoveStart, shows that it crashes here:

    if (m_flags & wxAUI_MGR_TRANSPARENT_DRAG)
        pane.frame->SetTransparent(150);

Where:
pane.frame = (class wxFrame *) 0x0

As a temporary workaround, I removed the flag wxAUI_MGR_TRANSPARENT_DRAG and it seems to skip the crashing part.

The crash is persistent: i.e. it happens on every drag attempt

Any ideas? or patch that I can apply to my local copy to fix this?
Btw, I searched the web before posting, and the same with the exact backtraces was reported several times (specially in the CodeBlocks forum)

--
Eran Ifrah
Cross platform, open source C++ IDE: http://www.codelite.org


--~--~---------~--~----~------------~-------~--~----~
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+unsubscribe@...
or visit http://groups.google.com/group/wx-users
-~----------~----~----~----~------~----~------~--~---


Re: wxAUI: dragging toolbar causes a crash on windows

by asm23 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Eran Ifrah wrote:

> Hi All,
>
> Recently I upgraded my WX version from 2.8.7 -> 2.8.10.
>
> All went smooth, nothing was broken, until I tried to drag a toolbar -
> at that point my application crashed.
>
> Some details:
> I am using wxAUI in my application, and wxToolBar (note: I am *not*
> using wxAuiToolbar)
> My WX version is 2.8.10, g++ 3.4.5 (MinGW stable)
> Windows XP SP3
>
> Running my application under gdb, with WX built in debug mode, shows the
> following stack trace:
>
> #0  0x670f3392 in wxAuiManager::OnFloatingPaneMoveStart (this=0x5649840,
> wnd=0x5254100) at ../../src/aui/framemanager.cpp:3449
> #1  0x670fdfe8 in wxAuiFloatingFrame::OnMoveStart (this=0x56ba1a0) at
> ../../src/aui/floatpane.cpp:279
> #2  0x670fdbea in wxAuiFloatingFrame::OnMoveEvent (this=0x56ba1a0,
> event=@0x22e440) at ../../src/aui/floatpane.cpp:182
>
> Examining the variables in the OnFloatingPaneMoveStart, shows that it
> crashes here:
>
>     if (m_flags & wxAUI_MGR_TRANSPARENT_DRAG)
>         pane.frame->SetTransparent(150);
>
> Where:
> pane.frame = (class wxFrame *) 0x0
>
> As a temporary workaround, I removed the flag wxAUI_MGR_TRANSPARENT_DRAG
> and it seems to skip the crashing part.
>
> The crash is persistent: i.e. it happens on every drag attempt
>
> Any ideas? or patch that I can apply to my local copy to fix this?
> Btw, I searched the web before posting, and the same with the exact
> backtraces was reported several times (specially in the CodeBlocks forum)
>
> --
> Eran Ifrah
> Cross platform, open source C++ IDE: http://www.codelite.org
>
>
> >
Hi, Eran.

I also meet this problem, see this post by mmkider and me(
ollydbg@codeblocks's forum):

http://forums.codeblocks.org/index.php/topic,10406.msg71744.html#msg71744

And here is another solution

http://wxforum.shadonet.com/viewtopic.php?t=23624&highlight=bug+wxmsw


I'm not sure why this bug still exist, seems it doesn't exist in
wxWidgets 2.8.8.


Thanks.

ollydbg @ codeblocks forum

--~--~---------~--~----~------------~-------~--~----~
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+unsubscribe@...
or visit http://groups.google.com/group/wx-users
-~----------~----~----~----~------~----~------~--~---