U++ framework
Do not panic. Ask here before giving up.

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: Sun Apr 26 14:07:04 GMT+2 2026

Total time taken to generate the page: 0.00589 seconds