The following lines :
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
should free the memory bitmap BMP, no longer desired.
However, by testing the amount of memory before and after get the same value.
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
What explanation can you give ?
Thank you for your attention
			
			
			
				B4X:
			
		
		
		Dim Obj1 As Reflector
Obj1.Target = BMP
Obj1.RunMethod ("recycle")However, by testing the amount of memory before and after get the same value.
			
				B4X:
			
		
		
		Sub GetFreeMemory As Long
    Dim jo As JavaObject
    Return jo.InitializeStatic("java.lang.Runtime").RunMethodJO("getRuntime", Null).RunMethod("totalMemory", Null)
End SubThank you for your attention
 
				 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		