@freddix
Quote:
int *ObjectPTR2;
int *NewObjectListPTR;
*NewObjectListPTR = ObjectPTR2; // LINE 212 IS HERE //
This really should be obvious.
NewObjectListPTR is a pointer to an int, so *NewObjectListPTR is an int. You assign ObjectPTR2, which is a pointer, to that int.
I am not sure what this line actually shall do. If the code works correctly, you could do something like
*NewObjectListPTR = (int)ObjectPTR2;
but that would only prove that you don't know yourself what the code is doing.
Better declare all variables so that it works without a cast.
Bye,
Thomas