January 23, 2015 Re: What to do with InvalidMemoryOperationError | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nordlöw | On Friday, 23 January 2015 at 21:25:01 UTC, Nordlöw wrote:
> On Friday, 23 January 2015 at 10:13:43 UTC, Joakim wrote:
>> InvalidMemoryOperationError generally means that you are performing certain disallowed memory operations during a full garbage collection, such as allocating while the gc is running.
>
> If my app is single-threaded this cannot happen then.
Single-/multi-threaded doesn't make a difference. This happens with a single thread, too. The GC calls destructors. When a destructor allocates then, it allocates during a GC run.
|
January 25, 2015 Re: What to do with InvalidMemoryOperationError | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nordlöw | On Wednesday, 21 January 2015 at 12:00:47 UTC, Nordlöw wrote: > My executable throws as > > core.exception.InvalidMemoryOperationError@(0) > > when compiled with DMD git master. > > I get no stack trace in GDB. > > What to do? Hi, I created a wiki page which I hope will help you solve this problem: http://wiki.dlang.org/InvalidMemoryOperationError Hope this helps. |
January 25, 2015 Re: What to do with InvalidMemoryOperationError | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vladimir Panteleev | On Sunday, 25 January 2015 at 00:44:07 UTC, Vladimir Panteleev wrote:
> I created a wiki page which I hope will help you solve this
> problem:
>
> http://wiki.dlang.org/InvalidMemoryOperationError
>
> Hope this helps.
Great! Thanks!
|
Copyright © 1999-2021 by the D Language Foundation