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 » Newbie corner » The right way to use CoDo with GuiLock? (The app freeze when trying to update the GUI while CoDo)
The right way to use CoDo with GuiLock? [message #58544] Sat, 11 June 2022 12:25 Go to previous message
Mountacir is currently offline  Mountacir
Messages: 49
Registered: November 2021
Member
Hi,

I'm having trouble trying to update a ColumnList while using CoDo.
Adding GuiLock in my example makes the app freeze.
How to do it the correct way?

void DoCoTest::FillList(){
	std::atomic<int> ii(0);
	CoDo([&] {
		for(int i =ii++; i < 100 ; i=ii++) {
			
			GuiLock __;
			columnlist.Add(i);
		
		}	
		
	});
}



Thank you.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Different File List
Next Topic: SVG for tool icon
Goto Forum:
  


Current Time: Sat May 10 21:06:32 CEST 2025

Total time taken to generate the page: 0.05574 seconds