Program crash: GC destroys an object unexpectedly

jfondren julian.fondren at gmail.com
Tue Sep 14 17:02:32 UTC 2021


On Tuesday, 14 September 2021 at 16:56:52 UTC, eugene wrote:
> On Tuesday, 14 September 2021 at 16:43:50 UTC, jfondren wrote:
>> GC needs to be able to stop your program
>
> nice fantasies...
>
>> and find all of the live objects in it. The misaligned pointer 
>> and the reference-containing struct that vanishes on the 
>> return of your corresponding function are both problems for 
>> this.
>
> where did you find 'misaligned pointer'?...

It doesn't seem like communication between us is possible, in the 
"a five-pound phone won't sell" way. You can find this answer 
explained with code in an earlier post.

My suggestion remains: try troubleshooting by making your program 
@safe.


More information about the Digitalmars-d-learn mailing list