Hello,
I have a problem with juce::TooltipWindow that i don’t understand please.
I wrote a very basic example of Plugin.
Following the example given in JUCE/examples/GUI/WidgetsDemo.h, in the Editor.h i declare:
an object:
juce::TooltipWindow ttw;
Then in Editor.cpp, for a widget i write:
object->setTooltip("text");
I i use only one instance of the plugin in DAW Ardour, this works fine, but if i use two instances, then if the mouse pass on the widget, the message “text” appears but DAW Ardour crashes. The debugger (gdb) message is :
Thread 1 (Thread 0x7ffff7a3b900 (LWP 41172) "ArdourGUI"):
#0 0x00007fffe91f075b in kill () at ../sysdeps/unix/syscall-template.S:120
#1 0x00007fff9193789c in juce::TooltipWindow::displayTipInternal (this=0x555557c2d4e8, screenPos=..., tip=..., shownManually=juce::TooltipWindow::no) at /home/faure/install/musique/JUCE/modules/juce_gui_basics/windows/juce_TooltipWindow.cpp:141
#2 0x00007fff91937cc0 in operator() (__closure=0x7fffffffcea0) at /home/faure/install/musique/JUCE/modules/juce_gui_basics/windows/juce_TooltipWindow.cpp:230
#3 0x00007fff91938013 in juce::TooltipWindow::timerCallback (this=0x555557c2d4e8) at /home/faure/install/musique/JUCE/modules/juce_gui_basics/windows/juce_TooltipWindow.cpp:249
#4 0x00007fff91778c42 in juce::Timer::TimerThread::callTimers (this=0x55555d00dfc0) at /home/faure/install/musique/JUCE/modules/juce_events/timers/juce_Timer.cpp:115
#5 0x00007fff91778e6b in juce::Timer::TimerThread::CallTimersMessage::messageCallback (this=0x7fff38000b90) at /home/faure/install/musique/JUCE/modules/juce_events/timers/juce_Timer.cpp:181
#6 0x00007fff9177ac07 in juce::InternalMessageQueue::InternalMessageQueue()::{lambda(int)#1}::operator()(int) const (__closure=0x55555aa01da0, fd=46) at /home/faure/install/musique/JUCE/modules/juce_events/native/juce_linux_Messaging.cpp:42
etc
May be i use tooltip in a bad way? Thanks,
Frédéric.