SetGadgetText() indise a thread not allowed?
SetGadgetText() indise a thread not allowed?
I have simple download thread. To show the progress a ProgressBarGadget is updated from inside the thread during the process (SetGadgetState). If I show the progress additionaly with a text on a TextGadget, then the program crahses after a while (only if the Debugger is on). It is not alloewd to use SetGadgetText() inside a thread?
Re: SetGadgetText() indise a thread not allowed?
Never touch gui from threads. Use postevent to send updates to main gui thread and update it there.
Re: SetGadgetText() indise a thread not allowed?
Show Module ThreadToGUI
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Re: SetGadgetText() indise a thread not allowed?
Thanks to all!