Hi all,
In VC++ 6.0 help document, it is suggested to use SetSize before using CArray. The reason is the following:
"If you do not use SetSize, adding elements to your array causes it to be frequently reallocated and copied. Frequent reallocation and copying are inefficient and can fragment memory."
If I use SetAtGrow without setting the size of the array, do I still have inefficiency problem?
Thanks.
In VC++ 6.0 help document, it is suggested to use SetSize before using CArray. The reason is the following:
"If you do not use SetSize, adding elements to your array causes it to be frequently reallocated and copied. Frequent reallocation and copying are inefficient and can fragment memory."
If I use SetAtGrow without setting the size of the array, do I still have inefficiency problem?
Thanks.