As you know I'm still using some old 0.0.5 or 0.0.6 trunk. I found a bug but did not find a mantis ticket that seems to have solved it, so I still post it here. Sorry if it's already solved.
when doing setDefaultTooltip(NULL), it crashes because of the following code:
Code: Select all
d_weOwnTooltip = false;
d_defaultTooltip = tooltip;
d_defaultTooltip->setWritingXMLAllowed(false);
The last line then crashes.
When setting the default tooltip to an empty string, it is handled correctly.
Edit: sorry this post should go into bugreports, don't know how I can move it, noticed it too late ...
Edit: More info, when I do this:
Code: Select all
m_pDefToolTip = CEGUI::System::getSingleton().getDefaultTooltip();
CEGUI::System::getSingleton().setDefaultTooltip("");
CEGUI::System::getSingleton().setDefaultTooltip(m_pDefToolTip);
then the CEGUI system crashes while handling the next mouse move event. m_pDefToolTip is not null. Callstack:
Code: Select all
CEGUI::System::injectMousePosition
CEGUI::System::injectMouseMove
CEGUI::Window::onMouseEnters
CEGUI::Tooltip::setTargetWindow
CEGUI::Window::addChildWindow
??(at the line: addChild_impl)
window is NOT null.
I hope (for me) this bug is not yet fixed in the current trunk, as I could find no mantis ticket for it.