Either I'm confused or the gc is

ikod igor.khasilev at gmail.com
Wed Oct 21 19:41:01 UTC 2020


On Wednesday, 21 October 2020 at 16:24:41 UTC, donallen wrote:
> I'm new to D, but not to programming (I wrote my first line of 
> code 60 years ago and am retired from a long career as a 
> developer and project manager).

Very cool!

> Thanks in advance for any help.

Most likely GC clears prematurely some of your data (as H.S.Teoh 
pointed out).
You can try to disable GC for a single program run with 
--DRT-gcopt="disable:1" option. Just add it to your command line 
args and see what happens.

Another investigation can be done using memory checker like 
'valgrind'.

Regards,


More information about the Digitalmars-d mailing list