Hi! I've been experiencing out of memory (OOM) problems lately and I could not figure out why. The following figures are returned by the Reflection Library immediately before the line which throws an error:
Max Mem 536,870,912 (0x20000000)
Free Mem 11,523,296 (0xAFD4E0)
Total Mem 16,002,840 (0xF42F18)
I'm still searching this community and other sources for possible solution to the problem. I've already checked for possible leaks (closed up one or two) but the error persists. For now, my questions are:
1. Can the maximum memory be increased in B4A? (LARGEHEAP is already set in the manifest.)
2. Does total memory refer to the amount of memory my app uses?
3. If so, why is my free memory only 11MB when the maximum memory is 536MB (or 512MB)?
By the way, the OOM error shows at the line which reads a 300-byte file using randomaccessfile's readb4xobject.
Thanks a lot for any help you could share on this. God bless!
Max Mem 536,870,912 (0x20000000)
Free Mem 11,523,296 (0xAFD4E0)
Total Mem 16,002,840 (0xF42F18)
I'm still searching this community and other sources for possible solution to the problem. I've already checked for possible leaks (closed up one or two) but the error persists. For now, my questions are:
1. Can the maximum memory be increased in B4A? (LARGEHEAP is already set in the manifest.)
2. Does total memory refer to the amount of memory my app uses?
3. If so, why is my free memory only 11MB when the maximum memory is 536MB (or 512MB)?
By the way, the OOM error shows at the line which reads a 300-byte file using randomaccessfile's readb4xobject.
Thanks a lot for any help you could share on this. God bless!