Hello Dmitriy,
Thank you for reporting the WMenuItem bug, this is my fix:
if (contents_) {
// contents' ownership will be moved to a containerwidget once
// it is in the widget tree (contentsLoaded). In any case, if
// contents_ is destroyed elsewhere, we want to know about it.
contentsDestroyedConnection_ =
contents_->destroyed().connect(this, &WMenuItem::contentsDestroyed);
}
With this fix, and with the following little modification to your example
program, I think the behaviour is as expected?
WMenu* const m = new WMenu(new WStackedWidget(root()));
BR,
Wim
2013/12/30 Dmitriy Igrishin <dmit...@gmail.com>
> Hey,
>
> I found a bug. Please, see attachment.
> BTW: there are regression found after updating to the latest git
> (I believe after fixing WMenuItem's memory issue). After running
> my test case (or any code which calls new WMenuItem(...)
> you'll see Segmentation fault error!
>
> --
> // Dmitriy.
>
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
> Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> _______________________________________________
> witty-interest mailing list
> witty-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
>
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest