Thread overview
[Issue 19714] Invalid memory operation in class destructor
Mar 03, 2019
Adam D. Ruppe
Mar 03, 2019
Seweryn
Mar 03, 2019
Seweryn
Mar 03, 2019
Seweryn
March 03, 2019
https://issues.dlang.org/show_bug.cgi?id=19714

Adam D. Ruppe <destructionator@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |destructionator@gmail.com

--- Comment #1 from Adam D. Ruppe <destructionator@gmail.com> ---
That bug is in your code: you are allocating a new string while the garbage collector is running. The exception is telling you to not do that.

I don't know where that's documented though...

--
March 03, 2019
https://issues.dlang.org/show_bug.cgi?id=19714

--- Comment #2 from Seweryn <seweryn.kaminski@gmail.com> ---
OK, thanks.
I did not expect that behavior.

--
March 03, 2019
https://issues.dlang.org/show_bug.cgi?id=19714

--- Comment #3 from Seweryn <seweryn.kaminski@gmail.com> ---
Here are some information about the problem

https://wiki.dlang.org/InvalidMemoryOperationError

--
March 03, 2019
https://issues.dlang.org/show_bug.cgi?id=19714

Seweryn <seweryn.kaminski@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
           Severity|blocker                     |trivial

--