Answer the question
In order to leave comments, you need to log in
Why can Invalid pointer operation occur in Pascal?
There is a function in Pascal-like syntax
in this line, when working, an error occurs Invalid pointer operation
from the description it is clear that:if oNode <> nil then FreeObject(oNode);
204 Invalid pointer operation
You will get this if you call Dispose or Freemem with an invalid pointer (notably, Nil).
Answer the question
In order to leave comments, you need to log in
Most likely, this is how it is: calling "cleanup" twice on the same object.
ps perhaps the reason is that this object was assigned to one of the elements of the list, which was cleared before clearing this object, that is, the object seems to exist, but the data no longer existsExactly.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question