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  |
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.
|
|
|
Goto Forum:
Current Time: Sat May 10 21:06:32 CEST 2025
Total time taken to generate the page: 0.05574 seconds
|