tag:blogger.com,1999:blog-29331675.post6185910508067496761..comments2024-03-05T17:37:00.995+01:00Comments on The Delphi Geek: Implementing Destructor for a Recordgabr42http://www.blogger.com/profile/06903558857617342477noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-29331675.post-51867437374145780712015-01-08T21:59:29.000+01:002015-01-08T21:59:29.000+01:00I can only agree with that. You should understand ...I can only agree with that. You should understand refcounting if you want to use interfaces. Period.gabr42https://www.blogger.com/profile/06903558857617342477noreply@blogger.comtag:blogger.com,1999:blog-29331675.post-84740441389617637402015-01-08T21:43:11.366+01:002015-01-08T21:43:11.366+01:00Ok, thanks. Just wanted to be sure that "unin...Ok, thanks. Just wanted to be sure that "unintercepted" assignment does nothing wrong here; still I believe a user of this "smart pointer" should understand how refcounting works under the hood to use the "smart pointer" correctly.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-29331675.post-60265073510776168322015-01-08T21:21:04.323+01:002015-01-08T21:21:04.323+01:00a) Downloading one needed unit is simple and nothi...a) Downloading one needed unit is simple and nothing beats hands-on experience when you want to learn something.<br /><br />b) OK, OK:<br /><br />List created<br />Record [0] created<br />1><br />2><br />List destroyed<br />Record [0] destroyed<br />4><br /><br />No memory corruption and I don't see any reason for it.gabr42https://www.blogger.com/profile/06903558857617342477noreply@blogger.comtag:blogger.com,1999:blog-29331675.post-75591424688414570802015-01-08T21:08:24.601+01:002015-01-08T21:08:24.601+01:00I don't have your libs, I just reading the art...I don't have your libs, I just reading the article. I am asking do the above code corrupts memory with probable AV or not.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-29331675.post-92146788498878378892015-01-08T21:05:20.198+01:002015-01-08T21:05:20.198+01:00Start the Delphi and find out?Start the Delphi and find out?gabr42https://www.blogger.com/profile/06903558857617342477noreply@blogger.comtag:blogger.com,1999:blog-29331675.post-51166523350152029342015-01-08T20:50:07.917+01:002015-01-08T20:50:07.917+01:00? What will happen if I run the next code:
proced...? What will happen if I run the next code:<br /><br />procedure Test;<br />var<br /> rec1, rec2: TRec;<br />begin<br /> rec1 := TRec.Create(0);<br /> Write('1>'); Readln;<br /> rec2 := rec1;<br /> Write('2>'); Readln;<br />end;<br />Anonymousnoreply@blogger.com