|
-
September 19th, 2006, 07:23 AM
#4
Re: CStringArray behavior - interesting...
 Originally Posted by Mab
CStringArray is derived from COBArray: RemoveAll does not delete the Objects just the pointers. The following is from the CObArray documentation and I see no additions to the CStringArray documentation.
CObArray::RemoveAll
void RemoveAll( );
Remarks
Removes all the pointers from this array but does not actually delete the CObject objects. If the array is already empty, the function still works.
The RemoveAll function frees all memory used for pointer storage.
That's not the problem here as CStringArray strores CStrings and not pointers to objects. RemoveAll in a CStringArray deletes the CStrings as well.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|