See a code like this:
How does this really work?
What is stored on the map? Yes a object!
But a reference?
What is the impact on memory?
If another code is used:
then double the memory will be consumed?
Thanks for explanations.
B4X:
Dim imgMap As Map
imgMap.Initialize
Dim i As Bitmap=LoadBitmap(File.DirAssets,"square.jpg")
For x=0 To 100
imgMap.Put(x,i)
Next
How does this really work?
What is stored on the map? Yes a object!
But a reference?
What is the impact on memory?
If another code is used:
B4X:
Dim imgMap2 As Map
imgMap2.Initialize
Dim i As Bitmap=LoadBitmap(File.DirAssets,"square.jpg")
For x=0 To 100
imgMap2.Put(x,i)
Next
then double the memory will be consumed?
Thanks for explanations.