“std::bad_alloc”: am I using too much memory?

My problem turned out to be that this->meshPoints.getNormalForVertex(i) accesses an array (or vector, I can’t remember) whose length is less than this->meshPoints.getNumFaces() * 3. So it was accessing out of bounds.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)