I have coded a program that copyes some files in a loop and it says how many files are left and a progressbar but the thing is the after some sec the dialog becomes white and windows thinks it has bugged out. How can i fix this and how can i get a Cancel button work?
Posted on 2005-08-20 21:03:24 by lilljocke
I believe it is because the code is stuck in the loop using close to 100% of your cpu processing power and hence not much of it is left to repaint the dialog. Therefore, "the dialog becomes white and windows thinks it has bugged out".

I would propose that you throw the file copying loop into a thread.
Posted on 2005-08-20 21:51:57 by roticv
I have heard the word theard many times but i have not heard what it is, how can i create a therd ?
Posted on 2005-08-20 21:57:26 by lilljocke
lilljocke ,

Iczelion did a wonderful explanation in chapter 15 of his tutorial and it is titled "Multithreaded Programming". Do read it.
Posted on 2005-08-20 22:06:52 by roticv
Thanks it was too simple  :D
Posted on 2005-08-20 22:25:49 by lilljocke
Thank you
Posted on 2005-08-27 07:10:14 by jhkdiy