You forgot to reserve memory for these:

VECTOR* ilk_uzaklik;
VECTOR* son_uzaklik;
VECTOR* hareket;

Until now they are just vagabonding pointers.


Always learn from history, to be sure you make the same mistakes again...