Gamezpedia / in-spirit

Automatically exported from code.google.com/p/in-spirit
0 stars 0 forks source link

destroy method #7

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I implemented the surf engine in flash/AS3 :

public var surf:ASSURF;
public var surfOptions:SURFOptions;

surfOptions = new SURFOptions(capture_sp.width, capture_sp, 200, 0.003, true, 
4, 4, 2);
surf = new ASSURF(surfOptions); 

and then destroy it on button click :
surf.destroy();

but memory is never released....

Is there a trick to completely freeing memory ?

thanks.

Original issue reported on code.google.com by arth...@gmail.com on 16 Jun 2010 at 1:20

GoogleCodeExporter commented 8 years ago
Unfortunately you cant release all the allocated memory.
by calling destroy - you clear all the memory allocated inside ASSURF (all 
inner buffers) but you can;t clear Alchemy static memory.

Original comment by zatepya...@gmail.com on 19 Jul 2010 at 2:49