GC being too eager?

Rene Zwanenburg renezwanenburg at gmail.com
Thu Apr 10 03:37:56 PDT 2014


On Thursday, 10 April 2014 at 09:24:51 UTC, Paulo Pinto wrote:
> In a toy project I am working on with D v2.065, I came to the 
> following situation:
>
> Node path = solver.find (map, start, end);
> if (path !is null) {
>     path.writeContents();  <-- Access Violation
> }
>
> Apparently between the test and trying to use the class, the 
> reference becomes null.
>
> Quite strange in a single threaded application.
>
> Any idea what might be happening or should I delve into 
> assembly?
>
> --
> Paulo

Can you post writeContents?


More information about the Digitalmars-d-learn mailing list