GC BUG: Referenced object destroyed before released

Koroskin Denis 2korden at gmail.com
Sun Mar 16 15:37:10 PDT 2008


On Mon, 17 Mar 2008 01:28:04 +0300, Graham St Jack <grahams at acres.com.au>  
wrote:
> I agree that this is a problem. Who cares if the two objects in question
> aren't referenced and more - their destructors should be called in the
> right order if it is possible to do so.

Yep.

> I guess the work-around (and maybe permanent) is to not reference any
> garbage-collected objects in your destructors.
>

Nope. This is against RAII pattern.



More information about the Digitalmars-d mailing list