<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote"><span class=""></span>On Mon, Sep 23, 2013 at 8:50 AM, Sven Barth <span dir="ltr"><<a href="mailto:pascaldragon@googlemail.com" target="_blank">pascaldragon@googlemail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">You need to add a "Result<span class="" id="93009000-82dc-47fa-a480-b08c6d5e12b0">.</span>Assign<span class="" id="15d8838a-87bd-40b2-8a8f-bdcfe599d7c1">(</span>Self)" to your clone call and implement a virtually inherited "Assign" method in each class where you copy all fields. This is how "TPersistent" and its descendants do it as well.</blockquote>
</div><br><div class="gmail_default" style="font-family:tahoma,sans-serif">Yes I added assign, but as example above, it is crashed when creating it<br></div><br>Result<span class="GINGER_SOFATWARE_mark" id="c690dc27-07a3-4c4d-a269-fe35ee500bd2">:</span>=TBaseObject<span class="GINGER_SOFATWARE_mark" id="08c40be2-1285-4e98-b968-10f2daf21512">(</span>ClassType)<span class="GINGER_SOFATWARE_mark" id="d4643f6c-5b6c-4007-a784-30c953d624af">.</span>Create;<br clear="all">
<br>-- <br><div dir="ltr"><span style="font-family:courier new,monospace">I am using last revision of Lazarus, FPC 2.6 on Windows XP SP3<br><br>Best Regards<br><span class="" id="98291eed-619f-40d3-9b9f-b38c61aec7f6">Zaher</span> Dirkey</span></div>
</div><span class=""></span></div>