Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Memory leak somewhere in file.read() / buffer / base64encode

$
0
0

I've been working on a library to split files into chunks, b64 encode, and upload them. It's all working fine, except somewhere in the process there is a memory leak. I've gone through my code line by line, and there's nothing I'm not clearing, I've even gone as far as removing the entire object and recreating it, but memory roughly the size of the chunks persist, until the app eventually crashes due to memory constraints.

Does anyone who what specifically is could cause these leaks, and any way to work around them?

Thanks

I've attached some screenshots of the memory allocations that wont go away from Instruments ![All heap allocations](https://www.dropbox.com/s/p31fglkgr1948bx/Screen%20Shot%202013-09-13%20at%2012.29.12.png "All heap allocations") ![All anonymous VM](https://www.dropbox.com/s/pcoy5cfm6bolqxt/Screen%20Shot%202013-09-13%20at%2012.29.54.png "All anonymous VM")


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>