Hi there,
I have the address of object, but somewhere in program the object I have the address of was deleted, so, how can I check (using the address of object) that this object doesnt exist any more.
Thanks.
I am working on a function that will check for the validity of a pointer. Until then there are no way to do this.
I will keep you up-to-date.
Hi,
I have extensively looked for solutions to solve this problem. In general the C / C++ language doesn't have any type of decent functionnality to do this. I tried many different approaches and none worked correctly.
If someday I find a way to do this, I will gladly implement it.
Why can't you just set the pointer to null when it's deleted?
Problem is that the variable points to another object variable that could have been deleted. Therefore the link is still there but the original object variable is freed.
I thought about going through all PPL's variables and unassigned all object variables pointing to the object that has been freed. However I cannot do this for variables that kept the object's location inside arrays or matrices.
Let me know if you think this method could be usefull or not.