Your code MUST crash because you're using an empty vector pointer (VECTOR*) and not a vector (VECTOR). Read the manual about the difference between pointers and variables.