View Single Post
Old 22nd December 2020, 12:08 PM   #3
modeler
Member
Advanced member
 
Join Date: Nov 2003
Posts: 34
Default Re: Overall support for multicore cpu

The program crashes. This code is part of an importer. It works on the first import but crashes on the second import.
#pragma omp parallel
for (int n = 0; n < (int)num_vertices; n++)
{
Vertex *vtemp;
v.x = vert[n].v[0];
v.y = vert[n].v[1];
v.z = vert[n].v[2];
vtemp = object_find_vertex_point(ob, &v);
vindex[n] = ac_object_get_vertex_index(ob, vtemp);

}
modeler is offline   Reply With Quote