May I ask what's the solution if, whenever i minimize and restore the dialog, the dialog takes time to load all the controls. I gives me gray dialog at first.
how to prevent this to happen. I know I have lots of things doing at the background.
Don't mix your processing, data and graphical display.
One solution is to have a common data structure which is shared between the two threads. The processing thread retrieves data from the store and dumps it back into the store. You might need a sleep or yield somewhere to stop it hogging the CPU.
The display thread just grabs data from the store and displays it. It doesn't do any processing at all. That way, the graphics is independent of the processing and you don't end up with big grey rectangles.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.