Using emplace leading to memory corruption

Andrej Mitrovic andrej.mitrovich at gmail.com
Sun Sep 29 02:59:41 PDT 2013


On 9/29/13, d coder <dlang.coder at gmail.com> wrote:
>       _foo = emplace!(Foo)(mem);                           // 40

I get a more interesting stack trace if I don't assign the result to _foo:

object.Error: Access Violation
----------------
object.Error: Access Violation
----------------
0x0041C977 in void* gc.gc.GC.mallocNoSync(uint, uint, uint*)
----------------
4000


More information about the Digitalmars-d mailing list