I seem to be getting an out of memory after adding and removing about 50 bitmaps. There somehow seems to be a memory leak.
I've tried to log the current memory usage by using this sub:
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
However, the returned values show there is plenty of memory available (several GB's), even when the app crashes with an out of memory.
I probably need to log another value, but how?
			
			I've tried to log the current memory usage by using this sub:
			
				B4X:
			
		
		
		Sub GetFreeMemory As String
    Dim ph As ICOSPhone
    Return ph.UsedMemory & "/" & ph.AvailMemory & "/" & ph.TotalMemory
End SubHowever, the returned values show there is plenty of memory available (several GB's), even when the app crashes with an out of memory.
I probably need to log another value, but how?
 
				 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		