aminogfx icon indicating copy to clipboard operation
aminogfx copied to clipboard

How to stop once started?

Open dudewheresmycode opened this issue 9 years ago • 1 comments

Once I call amino.start() can I stop() somehow in javascript? Or how can I remove items once added?

dudewheresmycode avatar May 17 '16 03:05 dudewheresmycode

I would like to know the same thing. If I try to start and then destroy, I get an error.

var Amino = require('aminogfx-gl');

var gfx = new Amino.AminoGfx();
gfx.start(function(err) {
    console.log('doing stuff');
});
gfx.destroy(true);

var gfx2 = new Amino.AminoGfx();
gfx2.start(function(err) {
    console.log('doing stuff 2');
});

This gives me the error: node: ../src/base.cpp:759: void AminoGfx::destroyAminoGfx(): Assertion 'res' failed.

fu-raz avatar May 31 '17 14:05 fu-raz