disable GC in AS3

2019-08-17 06:38发布

问题:

I met a strange problem in AS3 and thought the problem may be caused by the GC, can I disable GC explicitly in AS3?

Thanks. Bin

回答1:

i dont think that there is a reference to garbage collection in the program, however you can use the "bugs" in the system to prevent things being cleaned up. if you make a variable that references the object you want to keep safe for example.

why do you think that GC is your problem? it should only take effect when all alues are null, nothing references the object or if it isnt used actively in your code for quite a while. usually the problem is with the lack of gc.



回答2:

No you cannot disable GC.

You have not told us why you think GC is your problem, but that's almost certainly not the case.