Following Code
CNiVectorT test;
test.Append(CNiVectorT(1,12.5));
test.Append(CNiVectorT(1,5.5));
I get a
First-chance exception in Soft2003.exe: 0xC0000005: Access Violation.
here
CNiVectorT& CNiVectorT::Append (const CNiVectorT& other) {
const unsigned int sizeOfThis = GetSize();
const unsigned int sizeOfOther = other.GetSize();
====> Resize(sizeOfThis + sizeOfOther);
for (unsigned int iOther=0, iThis=sizeOfThis; iOther < sizeOfOther; iOther++, iThis++) {
vectorData[iThis] = other.vectorData[iOther];
}
return *this;
i think i have found the problem but not the solution.
the variable size has a value of 774910000 and the correct should be 2 ?
D
oes someone know a soulution for this?