Looking at used and available memory and using this code, copied from here:
Dim r As Reflector
Dim iFreeMemory As Int
Dim iMaxMemory As Int
Dim iTotalMemory As Int
Dim iUsedMemory As Int
When passing a cursor as a parameter, when is the correct time(s) to close the cursor?
Dim v_Cursor as Cursor = SQL.ExecQuery("SELECT * FROM TABLE")
Sub func(p_Cursor as Cursor)
Is there a simple way to determine the memory usage of an Object? Something like this:
myObject As Object
objectMemoryProfile As ObjectMemoryProfileClass
memoryUsage = ObjectMemoryProfile(myObject)
I have this strange issue with B4J. Early on when I'm working with it, the RAM usage is around 160MB, which is totally fine. But gradually that amount increases. After a short while to 250, then 300, etc. When I come back to continue my work after several hours, the usage goes above 500...