CArray on the heap
-
Is there any way to create a CArray object on the heap rather than on the stack? Thanks
-
Is there any way to create a CArray object on the heap rather than on the stack? Thanks
Yes, but why would you want to? As you add items to the array, memory is allocated from the heap to hold the individual items. The array object itself consumes very little memory.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
-
Yes, but why would you want to? As you add items to the array, memory is allocated from the heap to hold the individual items. The array object itself consumes very little memory.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
My guess is he wants it to exist outside the scope of the creating block. /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com
-
Is there any way to create a CArray object on the heap rather than on the stack? Thanks