if (X !is null && X.Y !is null) access crash

Steven Schveighoffer schveiguy at gmail.com
Mon Jun 10 19:48:18 UTC 2019


On 6/9/19 1:25 AM, Amex wrote:
> On Saturday, 8 June 2019 at 20:44:13 UTC, Steven Schveighoffer wrote:
>> Try GC.addRef on the X reference, and see if it helps.
>>
> 
> This is during shutdown so I imagine simply turning off the GC should 
> work fine? That way it prevents all cases rather than having to add a 
> bunch of specific cases each time they crop up.

I'm not sure if you can shut off the final collection. All you can do is 
disable collections during allocations.

-Steve


More information about the Digitalmars-d-learn mailing list