GC being too eager?
Paulo Pinto
pjmlp at progtools.org
Thu Apr 10 04:36:40 PDT 2014
On Thursday, 10 April 2014 at 09:31:30 UTC, John Colvin wrote:
> 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
>
> Delve delve delve. Is this in an optimised build?
No, debug build.
More information about the Digitalmars-d-learn
mailing list