Code:
*p->plane = (Plane*)realloc(p->plane, csize*sizeof(Plane));
*p->size = csize;


I think this is your problem. You dereference the pointer, and then use the 'member-by-pointer' operator, when you really want a 'member-by-variable'. So just remove the * ...
Code:
p->plane = (Plane*)realloc(p->plane, csize*sizeof(Plane));
p->size = csize;

or

(*p).plane = (Plane*)realloc(p->plane, csize*sizeof(Plane));
(*p).size = csize;



Last edited by DJBMASTER; 03/03/10 17:38.