problem with memory allocation in C++

Started by
10 comments, last by gatofedorento 12 years, 10 months ago

^ If you're returning multiple values, you should probably use references. Pointers is more like C style than C++


I understand this and that is why I emphasized with the word SOMETIMES in all caps.
Advertisement
I solved the problem, had an error in the algorithm when calculating the index of each vertex for the triangle, it was acessing a forbidden memory adress, solved that using the vector<>

thanks to everyone for the tips =)

This topic is closed to new replies.

Advertisement