"If you stored any emitter handles using GetEmitter()..." : precision

First, thx for your blazing fast library updates :)

Reading the reference page, you repeat :
"
If you stored any emitter handles using GetEmitter(), you must set these references to the emitters to "nil" before you delete the emitters. Otherwise, they cannot be garbage collected and will remain in memory! So be careful when storing emitter handles on your own!
"

Code talking :

1
2
3
4
5
6
local Emitter = Particles.GetEmitter("E1")
Emitter.rotation = Emitter.rotation+1
 
-- the clean up
Emitter = nil
Particles.CleanUp()

Yes, Sir -that's correct ^^

views:1501 update:2011/10/14 9:11:21
corona forums © 2003-2011