[Issue 15822] InvalidMemoryOperationError when calling GC.removeRange/Root from a finalizer

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Mar 23 12:23:40 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=15822

--- Comment #7 from ag0aep6g at gmail.com ---
(In reply to hsteoh from comment #6)
> This bug has not yet been (fully) fixed:
> 
> ------
> import std.stdio;
> class Wrapper
> {
>     typeof(stdin.byLine()) src;
> }
> void main()
> {
>     auto x = new Wrapper();
>     x.src = stdin.byLine();
> }
> ------
> 
> Run as 'echo | ./program'. Output:
> 
> ------
> core.exception.InvalidMemoryOperationError at src/core/exception.d(693):
> Invalid memory operation
> ------

Works for me. Are you testing with stable?

--


More information about the Digitalmars-d-bugs mailing list