Subj : Taking a community college CIS/C++ course
To   : Nightfox
From : Digital Man
Date : Wed Jan 17 2024 09:51 am

 Re: Taking a community college CIS/C++ course
 By: Nightfox to Digital Man on Tue Jan 16 2024 05:53 pm

> One time in my career, I was surprised to learn of something I didn't know,
> which apparently was not mentioned in my classes in college: That it's
> unsafe to do GUI-related things from anything other than the main thread.
> Either that wasn't mentioned in any of my classes, or somehow I missed it.
> I did have a couple of classes in college pertaining to making a GUI (one in
> MFC with C++, and another with WinForms using C#).

That depends on the GUI framework. Borland VCL provides mechanisms that can be used to safely update GUI components ("controls" they call them) from child threads. I've done similar stuff in MFC apps, so it's doable if necessary.
--
                                           digital man (rob)

Rush quote #75:
Though his mind is not for rent, don't put him down as arrogant .. Tom Sawyer
Norco, CA WX: 50.7�F, 95.0% humidity, 0 mph W wind, 0.00 inches rain/24hrs

---
� Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net