[Issue 8875] core.exception.InvalidMemoryOperationError in case of remove() in Destructors

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Oct 26 22:40:37 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8875



--- Comment #4 from Maxim Fomin <maxim at maxim-fomin.ru> 2012-10-26 22:40:36 PDT ---
(In reply to comment #3)
> (In reply to comment #2)
> > AFAIK D garbage collector is non-reenterable. When a program returns from main
> > function and GC collects objects, destructors should not perform gc-related
> > operations because it will result in InvalidMemoryOperationError.
> 
> I think non-static destructor must be able to operate static member.
> so, GC must has more better Transfer of authority than if(running) .
> its possible ?

Whether data is static or not does not affect GC behavior on collecting garbage
when main function exits.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list