On 23/04/2014 at 10:45, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R14
Platform: Windows ;
Language(s) : C++ ;
---------
Hi,
I was attempting to store BaseSelect selections using BaseSelect->ToArray() and BaseSelect->FromArray().
I was then storing the resulting UCHAR pointers inside a c4d_misc::BaseArray<UCHAR> selectionsArray.
This seemed to work in effect, but the problem i had was that the values i was getting when casting the UCHAR pointers back into BaseSelect using FromArray() were never what i`d stored using ToArray(). The actual GetCount() of the resulting BaseSelect seemed to vary in size also..
So i ended up just storing my selections as a list of Bool values inside of BaseArray as it was easy to implement, fast enough, and predictable.
Has anybody else had this sort of problem with ToArray() and FromArray() or have i been doing something wildly wrong?