64,654
社区成员
发帖
与我相关
我的任务
分享
Wm5::Pointer1<Wm5::Vector2<float> > pVector2Temp;
//Wm5::Vector2<float> *pVector2Temp = new Wm5::Vector2<float> [intersectionPoints[i].size()];
for (int j = 0; j < intersectionPoints[i].size() ; j++)
{
//pVector2Temp[j] = intersectionPoints[i][j];
//pVector2Temp = Wm5::Vector2<float>(0,0);
Wm5::Vector2<float> test;
test.X() = 0;
test.Y() = 0;
pVector2Temp[j] = test;
Wm5::Pointer1<Wm5::Vector2<float> > pVector2Temp(new Wm5::Vector2<float> [intersectionPoints[i].size()]);
pVector2Temp[j] = test; //这句有问题吧!那里来的空间呢?
没实例化一个对象进行的非法操作了!
你运行就挂掉,估计是哪里调用了空指针引起的了