As you said, the progress bar slows down the copy. The progress bar is CPU intensive while the file copy is most likely IO bound. The progress bar slows the copy when the two operations share the same thread. Copying the file in a separate thread will allow more efficient use of multiple processors; both operations run almost independently. Also, try copying a file several gigabytes in size and watch your UI lock up. I tend to reuse code a lot. Code a process right the first time and use it many times.
Roger500
Posts
-
Progress Bar makes copying painfully slow, a little help please? -
Progress Bar makes copying painfully slow, a little help please?Not only are you copying the file in the UI, you are updating the progress bar every IO. I always calculate percent complete using the following formula: (number of bytes copied * 100) / size of file in bytes All numbers used in the calculation are long but the result is converted to int. Update the progress bar only when the percent changes.
-
32 bit Vista on 64 bit CPUs in Germany?Very different than my experiences in the US. I am a "hands on" shopper and have always gone the physical stores to select a system. I do not recall ever seeing such a mismatch.
-
32 bit Vista on 64 bit CPUs in Germany?Thanks, I'll pass the information. I did not even think of Dell Germany.
-
32 bit Vista on 64 bit CPUs in Germany?I want to buy a laptop for my 15 year old nephew in Germany (I'm a nice uncle :) ) and he is telling me the 64 bit processors come with a 32 bit OS. It costs extra to get a 64 bit OS. I have looked at online PC sales sites in Germany and do not see any thing that indicates the bitness of the OS in the laptop specifications. Can anyone in Germany verify what my nephew is telling me?
-
Do I need Vista as developer?I had several programs that ran just fine under XP but failed under Vista. The failures were all security related. I fixed the issues and things have been fine since. Develop on any system you want to but test your programs on the Vista platform before GA release. Everyone will thank you. :cool: