How do I COPY an object?
Posted on 2004-09-22
Let's say I have this in Delphi 7:
As I understand, the sentence marked with * makes Object2 POINT TO Object1 and I left an space in memory, that was allocated by "Object2:=TMyObject.Create;", that can not be referenced.
A. Is this correct?
B. What I really need is to have a COPY in memory of Object1 called Object2 so that they are totally independent from each other. How can I accomplish this?
Thanks a lot in advance.