THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 20/05/2009 at 01:51, xxxxxxxx wrote:
So it is.
Here the operator.
> AixGeometry& AixGeometry::operator=(const AixGeometry& src){ \> \> if(this == &src;){ \> \> return \*this; \> } \> \> //Allocate memory Points \> GeFree(this->pointArray); \> this->pointArray = NULL; \> this->pointArray = (AixPoint\* ) GeAlloc(sizeof(AixPoint) \* src.pointArraySize); \> \> this->pointArraySize = src.pointArraySize; \> \> //Allocate memory lines \> GeFree(this->lineArray); \> this->lineArray = NULL; \> this->lineArray = (AixNline\* ) GeAlloc(sizeof(AixNline) \* src.lineArraySize); \> \> this->lineArraySize = src.lineArraySize; \> \> //Allocate memory Ngons \> GeFree(this->ngonArray); \> this->ngonArray = NULL; \> this->ngonArray = (AixNgon\* ) GeAlloc(sizeof(AixNgon) \* src.ngonArraySize); \> \> this->ngonArraySize = src.ngonArraySize; \> \> //Points \> for(LONG i = 0; i < src.pointArraySize - 1; i++){ \> \> this->pointArray[i] = src.pointArray[i]; \> } \> \> //Lines \> for(LONG l = 0; l < src.lineArraySize - 1; l++){ \> \> this->lineArray[l] = src.lineArray[l]; \> } \> \> //Ngons \> for(LONG j = 0; j < src.ngonArraySize - 1; j++){ \> \> this->ngonArray[j] = src.ngonArray[j]; \> } \> \> //dirtyCount \> this->dirtyCount = src.dirtyCount; \> \> this->additionalAttributes = src.additionalAttributes; \> \> return \*this; \> }
But if i comment it out, Cinema builds its own =operator internally, which does the same garbage :-).
I have tried to write my DataType into GeData, copy the GeData into an other with its copy-function and read out the copied GeData. This doesn't work too.