Tuesday, December 20, 2005

No pait for you in a single thread application.

If the application has a single thread of execution, so when the thread is doing something, it can't also draw the UI.

After the user puts the application into the background and then the foreground again, the main form must paint the entire client area, and that means processing the Paint event. Because the no other event until the the thread finished the executing, the user will se a white UGLY interface until all the processing finished.

No comments: