29.11.2011, 16:15
Well, if all above element 43 aren't changed, then this is because that memory is not used after it was freed, because you don't allocate that much memory again. You can try adding a bigger array (in PAWN) in another function (which is called anywhere after the function where you call StoreArray has returned) to see if then more values are changed (you should of course remove them again after that).
paths = dest only sets the pointer of "paths", so then "paths" would point to the same location as "dest".
Before using memcpy you first need to allocate some memory to write to:
And when removing that struct from the vector you have to free that memory:
paths = dest only sets the pointer of "paths", so then "paths" would point to the same location as "dest".
Before using memcpy you first need to allocate some memory to write to:
Code:
Paths = (cell*)malloc(amount_of_nodes_); memcpy(Paths, Paths_, amount_of_nodes);
Code:
free(RouteVector[x].Paths);