Re: How can I prevent CPU Usage increasing to 100 percent when copying files from CD?
On 9 Jan 2004 15:53:14 -0800, bwr@unicon.com (Bryan Rickard) wrote:
[color=blue]
>Steve, thank you very much! That took care of the problem.
>
>I wonder, though, why VB doesn't reallocate the same memory when you
>redefine a fixed-length string. You would think it would.[/color]
I agree, but even so it would still be quite a lot of unnecessary work
for the App.
Also, did you get my point about using Byte Arrays
- when VB reads data into a String it converts single bytes into 2
byte Unicode
- and when it writes it, it converts 2 byte Unicode to single bytes
On 9 Jan 2004 15:53:14 -0800, bwr@unicon.com (Bryan Rickard) wrote:
[color=blue]
>Steve, thank you very much! That took care of the problem.
>
>I wonder, though, why VB doesn't reallocate the same memory when you
>redefine a fixed-length string. You would think it would.[/color]
I agree, but even so it would still be quite a lot of unnecessary work
for the App.
Also, did you get my point about using Byte Arrays
- when VB reads data into a String it converts single bytes into 2
byte Unicode
- and when it writes it, it converts 2 byte Unicode to single bytes
Comment