Android Question How Free memory about gv.bitmapdata and ascf. elements?

FJS

Active Member
Licensed User
Longtime User
Good afternoon,

I have a error message: " out of the memory"

My tiny app is a game and I used gv.bitmapdata and ascf:

Dim gv As GameView
Dim AcSf As AcceleratedSurface
Dim IU As AS_ImageUtils

All my bitmaps are bitmapdatas, and I would like to free memory when the userclosed=true, because when i try to come back again, this message appears again.

One option is reflection, I tried:

Dim Obj1 As Reflector
'Obj1.Target = gv.bitmapsdata
'Obj1.RunMethod("recycle")

But it did not work...

Could you help me?

Best regards
 

FJS

Active Member
Licensed User
Longtime User
It should be:
B4X:
Obj1.Target = gv.BitmapsData.Bitmap


Good afternon Erel,

Sorry, but it gives a compilation error, because gv.bitmapsdata does not have bitmap as option.
Also, I can not use the code with bitmapsdata, only with bitmap. And I have only bitmapsdata in order to use the gv. (with this I can acelerate the graphics)
Could you help me?

Thank you in advanced
 
Last edited:
Upvote 0
Top