GeDynamicArray.ReScope()

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 21/07/2009 at 14:58, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   R10-R11 
Platform:   Windows  ;   Mac OSX  ; 
Language(s) :     C++  ;

---------
What does this do exactly? The explanation in the SDK docs is a bit terse:

Resizes the array without copying old data (it clears the array), sets the data to 0 (clears data).

Does this mean that it changes the number of elements in the GeDynamicArray and sets the element class members stored within to 0?

In one of my dynamic arrays, there is one class that should always remain there so I was thinking of calling:

// in the library class definition
GeDynamicArray <LibraryCollection*> collections;

// in the library code
collections.ReScopeNC(1L);

To Free() all of the array elements but the static first one. Would this work? :)

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 22/07/2009 at 08:30, xxxxxxxx wrote:

ReScopeNC() appears to be doing what is needed. :)