Re: [v8-users] Isolate->Dispose() causes crash only when Math.random() is used

2016-02-02 Thread Jochen Eisinger
you stack-allocate the ArrayBufferAllocator, so it'll get destructed at the end of the Initialize() method. You should allocate it on the heap instead, so it outlives that method. best -jochen On Mon, Feb 1, 2016 at 10:17 PM George Corney wrote: > Hey, > > I'm struggling

Re: [v8-users] Isolate->Dispose() causes crash only when Math.random() is used

2016-02-02 Thread George Corney
Yep, that was it! Thanks for your help Jochen! On Tuesday, February 2, 2016 at 8:48:56 AM UTC, Jochen Eisinger wrote: > > you stack-allocate the ArrayBufferAllocator, so it'll get destructed at > the end of the Initialize() method. > > You should allocate it on the heap instead, so it outlives

[v8-users] Isolate->Dispose() causes crash only when Math.random() is used

2016-02-01 Thread George Corney
Hey, I'm struggling to get to the bottom of this one The crash occurs with a slightly modified version of the *hello-world.cc* sample, I've separated the initialization and execution into one function and the dispose calls into another. If the executed javascript contains Math.random(), the