Here's the offending function: https://github.com/ZILtoid1991/collections-d/blob/master/source/collections/sortedlist.d#L38
It causes to throw an exception with Access violation reading location
and a memory address, int the function _d_arraysetlengthT
. Variable ti
is a TypeInfo_Array, value
of this object is null.
Error happens when adding a sprite in this class: https://github.com/ZILtoid1991/pixelperfectengine/blob/master/pixelperfecteditor/src/app.d#L64
However, the same doesn't happen when the editor is being run.
Since leaving out any addition of sprites causes errors elsewhere, I was thinking that it might be a memory leakage issue. Could memory leakage cause such errors when attempting to grow or shrink arrays?