Click here to Skip to main content
15,901,205 members
Home / Discussions / C#
   

C#

 
QuestionFile copy buffer size? Pin
MicealG15-May-08 6:15
MicealG15-May-08 6:15 
AnswerRe: File copy buffer size? Pin
led mike15-May-08 6:23
led mike15-May-08 6:23 
GeneralRe: File copy buffer size? Pin
MicealG15-May-08 6:31
MicealG15-May-08 6:31 
GeneralRe: File copy buffer size? Pin
led mike15-May-08 6:51
led mike15-May-08 6:51 
AnswerRe: File copy buffer size? Pin
Guffa15-May-08 7:41
Guffa15-May-08 7:41 
GeneralRe: File copy buffer size? Pin
led mike15-May-08 9:15
led mike15-May-08 9:15 
AnswerRe: File copy buffer size? Pin
Peter Josefsson Sweden15-May-08 11:44
Peter Josefsson Sweden15-May-08 11:44 
GeneralRe: File copy buffer size? Pin
Guffa15-May-08 13:01
Guffa15-May-08 13:01 
PeterTheSwede wrote:
On occasion I've experimented with 256K or 512K and it seems to work OK as well.


On consideration here is that an object larger than 85 kB will be allocated on the large objects heap instead of the regular heap. The large objects heap is not compacted in the way that the regular heap is, so the application might not be able to return that memory to the system when you have released the buffer.

Not a very serious concern as it's not very much memory, but it might be good to know.

PeterTheSwede wrote:
Being old enough to remember computers with less RAM than that


Those were the days... My first programming was done on a Sinclair ZX81 with 4 kB of memory. My first own computer was an Atari 600XL with 16 kb of memory. After that I got an Atari 130XE with massive 128 kB of memory. It had a special chip for swapping memory banks, as the CPU wasn't able to address more than 64 KB of memory... Smile | :)

Despite everything, the person most likely to be fooling you next is yourself.

GeneralRe: File copy buffer size? Pin
Peter Josefsson Sweden16-May-08 12:10
Peter Josefsson Sweden16-May-08 12:10 
GeneralRe: File copy buffer size? Pin
MicealG15-May-08 23:14
MicealG15-May-08 23:14 
QuestionStoring data in an array Pin
Brad Wick15-May-08 6:03
Brad Wick15-May-08 6:03 
AnswerRe: Storing data in an array Pin
led mike15-May-08 6:19
led mike15-May-08 6:19 
GeneralRe: Storing data in an array Pin
Brad Wick15-May-08 6:45
Brad Wick15-May-08 6:45 
GeneralRe: Storing data in an array Pin
led mike15-May-08 6:51
led mike15-May-08 6:51 
AnswerRe: Storing data in an array Pin
Bert delaVega15-May-08 6:47
Bert delaVega15-May-08 6:47 
GeneralRe: Storing data in an array Pin
Brad Wick15-May-08 7:11
Brad Wick15-May-08 7:11 
GeneralRe: Storing data in an array Pin
Bert delaVega15-May-08 7:28
Bert delaVega15-May-08 7:28 
AnswerRe: Storing data in an array Pin
DaveyM6916-May-08 2:36
professionalDaveyM6916-May-08 2:36 
QuestionArray.resize Pin
C++NewBe15-May-08 5:55
C++NewBe15-May-08 5:55 
AnswerRe: Array.resize Pin
led mike15-May-08 6:13
led mike15-May-08 6:13 
GeneralRe: Array.resize Pin
Dave Doknjas15-May-08 15:30
Dave Doknjas15-May-08 15:30 
GeneralRe: Array.resize Pin
led mike16-May-08 5:15
led mike16-May-08 5:15 
AnswerRe: Array.resize Pin
#realJSOP15-May-08 6:30
professional#realJSOP15-May-08 6:30 
QuestionInstance Failure Error Pin
Banjo Ayorinde15-May-08 5:22
Banjo Ayorinde15-May-08 5:22 
AnswerRe: Instance Failure Error Pin
led mike15-May-08 6:08
led mike15-May-08 6:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.