Heaps is not really working at all for me at all. Various functions like DefaultFont.get()
and Tile.fromColor()
gets a error relating to memory.
This code:
class Main {
static function main() {
app = new App();
Tile.fromColor(0xffffff);
}
}
throws an exception with this callstack
CallStack:
h3d.mat.Texture.alloc (c:\HaxeToolkit\haxe\lib\heaps\1,9,1\h3d\mat\Texture.hx:122)
h3d.mat.Texture.new (c:\HaxeToolkit\haxe\lib\heaps\1,9,1\h3d\mat\Texture.hx:113)
h3d.mat.Texture.fromColor (c:\HaxeToolkit\haxe\lib\heaps\1,9,1\h3d\mat\Texture.hx:435)
h2d.Tile.fromColor (c:\HaxeToolkit\haxe\lib\heaps\1,9,1\h2d\Tile.hx:357)
Main.main (c:\Users\User\Desktop\Project\src\Main.hx:16)
The code that errors is in the class h3d.mat.Texture
class Texture {
public function alloc() {
if( t == null )
mem.allocTexture(this); // <-- Exception has occurred. Null access
}
}
Debugger values:
this:
t: null
mem: null
I’ve tried making a new empty project and it doesn’t work and neither does reinstalling heaps or haxe. Some help would be appreciated. Thanks in advance