Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » U++ community news and announcements » 2023.2
Re: 2023.2 [message #60303 is a reply to message #60299] Tue, 14 November 2023 23:48 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13984
Registered: November 2005
Ultimate Member
timer.Set(-100,[&](){ refreshStatus(); });


[&] is unusual here (and pretty error prone with timer). Normal is

timer.Set(-100, [=] { refreshStatus(); });


Now I do not frankly see a reason why [&] should not work in this very case, but can you try [=] anyway?

Also, make sure that all other timer (and GUI in general) lambdas are with [=]....

You should only use [&] if you are sure that lambda is invoked immediately (e.g. with CoDo).

Mirek

[Updated on: Tue, 14 November 2023 23:49]

Report message to a moderator

 
Read Message
Read Message
Read Message icon14.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Ide: branch now displayed in editor bar
Next Topic: TheIDE and U++ have been released on Flathub
Goto Forum:
  


Current Time: Wed Jun 05 17:00:34 CEST 2024

Total time taken to generate the page: 0.01315 seconds