Hey everyone!
I have a big problem. I have a "worktime terminal" which allows users to register events to their cards. The terminal uses TImages and some native GUI elements over them (Labels, Edits, etc.).
Originally it was operating with Timers, but after i realized, that the Timers are all runs inside the main thread, i rewrote it to multithreaded. (Mainly because the "ping" event froze the entire application, if there was a network, but the destination was unreachable...)
After this, some new gfx glitches appeared, which seems to be all random. The terminal works properly for rnd() time (minutes to weeks) and then, suddenly the GUI elements (Labels, Edits, etc.) begins to appear half-drawn or not drawn at all. I tried to call .Refresh, .Repaint, tried to resize them to their suppozed size, but all no avail.
There is an image about what i'm talking:
http://oscomp.hu/depot/gfx_glitch.pngAs you can see on this image, the label is drawn only partially. And i cannot debug the reason. It works under my virtual winxp (what i use for development), but on the win10 based terminals it does this.
I repeat, this has begun when i made the program multithreaded. Is anyone run into this kind of problem before? Does anyone have any idea? The customer is becoming very angry, so i appreciate any idea...