Garbage collector collects live objects

Steven Schveighoffer via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Dec 9 08:10:02 PST 2014


On 12/9/14 9:52 AM, Ruslan Mullakhmetov wrote:
>
> No, there is no accessing GC resources in dtors.
>
> the only usage of dtor in one class is
>
>      ~this()
>      {
>          _file.close();
>      }
>
> where _file is of type std.file.File

That should work I think.

> i'll try to extract problem to any observable source code but all my
> previous attempts lead to problem being diminish.

Have you tried dustmite? https://github.com/CyberShadow/DustMite

-Steve


More information about the Digitalmars-d-learn mailing list